@payfit/unity-components
Version:
14 lines (13 loc) • 556 B
TypeScript
import { StandardSchema, StandardSchemaField } from '../types/schema.js';
import { z as z3 } from 'zod/v3';
import { z as z4 } from 'zod/v4';
export declare class ZodV3SchemaAdapter implements StandardSchema {
private zodSchema;
constructor(zodSchema: z3.ZodObject<z3.ZodRawShape>);
getField(path: string): StandardSchemaField | null;
}
export declare class ZodV4SchemaAdapter implements StandardSchema {
private zodSchema;
constructor(zodSchema: z4.ZodObject<z4.ZodRawShape>);
getField(path: string): StandardSchemaField | null;
}