SchemaTypetype

X extends Schema<infer Y> ? Y : never
Type
Schema
Schema is an object instance with a validate() method that converts unknown input into a known, valid type T.
Y

Extract the validated value type T from a Schema<T>.

Examples

type V = SchemaType<typeof STRING> // string