Skip to content

Type Alias: CombinatorSchema<T> ​

A schema produced by combinator factory functions. Any ArgSchema whose parse function returns T qualifies. The parse of ArgSchema, which returns any, is left out, so that a schema fits only where the values that it parses do: integer() is not a CombinatorSchema<string>.

Signature ​

ts
export type CombinatorSchema<T> = Omit<ArgSchema, 'parse'> & Combinator<T>

Type Parameters ​

NameDescription
TThe parsed value type.

Released under the MIT License.