Home > validator > yup > GetSchema
Signature:
export type GetSchema<T> = ([
T
] extends [string] ? StringSchema<T> : [T] extends [number] ? NumberSchema<T> : [T] extends [boolean] ? BooleanSchema<T> : [T] extends [Date] ? DateSchema<T> : T extends Array<infer X> ? ArraySchema<X> : T extends {} ? ObjectSchema<T> : MixedSchema<T>) | MixedSchema<T>;
References: StringSchema, NumberSchema, BooleanSchema, DateSchema, ArraySchema, ObjectSchema, MixedSchema