mirror of
https://github.com/hanzoai/market.git
synced 2026-11-03 01:29:00 +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;
|