Type Alias: Schema<P>
Schema<
P> =AnySchema<P> |ArraySchema<P> |AlternativesSchema<P> |BinarySchema<P> |BooleanSchema<P> |DateSchema<P> |FunctionSchema<P> |NumberSchema<P> |ObjectSchema<P> |StringSchema<P> |LinkSchema<P> |SymbolSchema<P>
Any schema built by the DTO builders (DTO.String(), DTO.Object(), …): what DTO.validate(), @Expect() and the other validation APIs accept. P is the type of the values it validates.
Type Parameters
P
P = any