( ast: SchemaAST.AST, options?: SchemaAST.ParseOptions )
| 1057 | } |
| 1058 | |
| 1059 | function makeSync<T>( |
| 1060 | ast: SchemaAST.AST, |
| 1061 | options?: SchemaAST.ParseOptions |
| 1062 | ): (input: unknown, options?: SchemaAST.ParseOptions) => T { |
| 1063 | let run: ((input: unknown, options?: SchemaAST.ParseOptions) => T) | undefined |
| 1064 | return (input, overrideOptions) => |
| 1065 | (run ??= makeSyncEntry<T>(CompilerRegistry.resolve(ast), options))(input, overrideOptions) |
| 1066 | } |
| 1067 | |
| 1068 | function makeSyncEntry<T>( |
| 1069 | entry: CompilerRegistry.Entry, |
no test coverage detected