(compiler: Compiler, ast: SchemaAST.AST)
| 992 | } |
| 993 | |
| 994 | function runWithCompiler<T, R>(compiler: Compiler, ast: SchemaAST.AST) { |
| 995 | let parser: Parser |
| 996 | return (input: unknown, options?: SchemaAST.ParseOptions): Effect.Effect<T, SchemaIssue.Issue, R> => { |
| 997 | return parserResult<T, R>((parser ??= compiler(ast))(input, options ?? SchemaAST.defaultParseOptions), input) |
| 998 | } |
| 999 | } |
| 1000 | |
| 1001 | function asPromise<T, E>( |
| 1002 | parser: (input: E, options?: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue> |
no test coverage detected