( parser: (input: E, options?: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue> )
| 1098 | } |
| 1099 | |
| 1100 | function asSync<T, E>( |
| 1101 | parser: (input: E, options?: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue> |
| 1102 | ): (input: E, options?: SchemaAST.ParseOptions) => T { |
| 1103 | return (input, options) => runSync(parser(input, options), "Sync adapter can only throw schema issues") |
| 1104 | } |
| 1105 | |
| 1106 | function runSync<T>(effect: Effect.Effect<T, SchemaIssue.Issue>, message: string): T { |
| 1107 | const exit = Effect.runSyncExit(effect) |
no test coverage detected