(schema: Schema.Schema<A, I, R>, options?: AST.ParseOptions)
| 662 | * @since 3.10.0 |
| 663 | */ |
| 664 | export const is = <A, I, R>(schema: Schema.Schema<A, I, R>, options?: AST.ParseOptions) => { |
| 665 | const parser = goMemo(AST.typeAST(schema.ast), true) |
| 666 | return (u: unknown, overrideOptions?: AST.ParseOptions | number): u is A => |
| 667 | Either.isRight(parser(u, { exact: true, ...mergeInternalOptions(options, overrideOptions) }) as any) |
| 668 | } |
| 669 | |
| 670 | /** |
| 671 | * By default the option `exact` is set to `true`. |
no test coverage detected