(
decode: (
fromA: any,
options: AST.ParseOptions,
self: AST.Transformation,
fromI: any
) => Effect.Effect<any, ParseResult.ParseIssue, R>
)
| 74 | }) |
| 75 | |
| 76 | function effectifyDecode<R>( |
| 77 | decode: ( |
| 78 | fromA: any, |
| 79 | options: AST.ParseOptions, |
| 80 | self: AST.Transformation, |
| 81 | fromI: any |
| 82 | ) => Effect.Effect<any, ParseResult.ParseIssue, R> |
| 83 | ): ( |
| 84 | fromA: any, |
| 85 | options: AST.ParseOptions, |
| 86 | self: AST.Transformation, |
| 87 | fromI: any |
| 88 | ) => Effect.Effect<any, ParseResult.ParseIssue, R> { |
| 89 | return (fromA, options, ast, fromI) => |
| 90 | ParseResult.flatMap(Effect.sleep("10 millis"), () => decode(fromA, options, ast, fromI)) |
| 91 | } |
| 92 | |
| 93 | function effectifyAST(ast: AST.AST): AST.AST { |
| 94 | switch (ast._tag) { |
no test coverage detected