Skip to content

Type Alias: SchemaLike<T> ​

SchemaLike<T> = SchemaLikeWithoutArray<T> | object

What the schema methods accept in place of a schema: a schema, a literal value (allowed as the only valid value), an object of schemas by key (an object schema) or an array of them (alternatives).

Type Parameters ​

T ​

T = any

Released under the MIT License.