(ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions)
| 445 | |
| 446 | /** @internal */ |
| 447 | export const getOption = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => { |
| 448 | const parser = getEither(ast, isDecoding, options) |
| 449 | return (input: unknown, overrideOptions?: AST.ParseOptions): Option.Option<any> => |
| 450 | Option.getRight(parser(input, overrideOptions)) |
| 451 | } |
| 452 | |
| 453 | const getEffect = <R>(ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => { |
| 454 | const parser = goMemo(ast, isDecoding) |
no test coverage detected