(ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions)
| 438 | } |
| 439 | |
| 440 | const getSync = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => { |
| 441 | const parser = getEither(ast, isDecoding, options) |
| 442 | return (input: unknown, overrideOptions?: AST.ParseOptions) => |
| 443 | Either.getOrThrowWith(parser(input, overrideOptions), parseError) |
| 444 | } |
| 445 | |
| 446 | /** @internal */ |
| 447 | export const getOption = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => { |
no test coverage detected
searching dependent graphs…