mirror of
https://github.com/hanzoai/bot-hub.git
synced 2026-10-30 18:46:42 +00:00
- Move ArkType schemas into packages/schema - Wire app/convex/cli imports to workspace dep - Add workspaces + update lint/coverage - Build schema dist (tracked)
5 lines
264 B
TypeScript
5 lines
264 B
TypeScript
import { ArkErrors } from 'arktype';
|
|
export type ArkValidator<T> = (data: unknown) => T | ArkErrors;
|
|
export declare function parseArk<T>(schema: ArkValidator<T>, data: unknown, label: string): T;
|
|
export declare function formatArkErrors(errors: ArkErrors): string;
|