(schema: S)
| 146 | * @since 3.10.0 |
| 147 | */ |
| 148 | export function is<S extends Schema.Constraint>(schema: S): <I>(input: I) => input is I & S["Type"] { |
| 149 | return _is<S["Type"]>(schema.ast) |
| 150 | } |
| 151 | |
| 152 | /** @internal */ |
| 153 | export function _is<T>(ast: SchemaAST.AST) { |