(schema: S)
| 133 | * @since 3.10.0 |
| 134 | */ |
| 135 | export function is<S extends Schema.Constraint>(schema: S): <I>(input: I) => input is I & S["Type"] { |
| 136 | return _is<S["Type"]>(schema.ast) |
| 137 | } |
| 138 | |
| 139 | function makeIs<T>(ast: SchemaAST.AST): <I>(input: I) => input is I & T { |
| 140 | if (!CompilerRegistry.compilerAdaptersEnabled) { |