type DeepPartial = { [P in keyof T]?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? ReadonlyArray> : DeepPartial; }; export type ValidateArg = T extends object ? DeepPartial : T; export type Validator = { prevalidate?: (v: string | null) => boolean; rehydrate: (v: string | null) => T; validate?: (v: ValidateArg) => boolean; optional: boolean; description?: string; errorMessage?: string; }; export type BuiltInValidator = Validator & { description: DescriptionT; errorMessage: ErrorMessageT; }; export {}; //# sourceMappingURL=types.d.ts.map