UNPKG

@backland/schema

Version:

TypeScript schema declaration and validation library with static type inference

5 lines (4 loc) 212 B
import { Infer } from '../Infer'; import { FieldInput } from '../fields/_parseFields'; export type $type_def = FieldInput; export type $type<T extends $type_def, _P1, _P2> = T extends unknown ? Infer<T> : never;