( self: Effect.Effect<A, SchemaError> )
| 1569 | } |
| 1570 | |
| 1571 | function runSchemaErrorPromise<A>( |
| 1572 | self: Effect.Effect<A, SchemaError> |
| 1573 | ): Promise<A> { |
| 1574 | return Effect.runPromiseExit(self).then((exit) => { |
| 1575 | if (Exit_.isSuccess(exit)) { |
| 1576 | return exit.value |
| 1577 | } |
| 1578 | throw getSchemaErrorOrThrow(exit.cause, "Promise adapter can only reject schema errors") |
| 1579 | }) |
| 1580 | } |
| 1581 | |
| 1582 | function runSchemaErrorSync<A>( |
| 1583 | self: Effect.Effect<A, SchemaError> |
no test coverage detected