( self: Effect.Effect<A, SchemaError> )
| 1580 | } |
| 1581 | |
| 1582 | function runSchemaErrorSync<A>( |
| 1583 | self: Effect.Effect<A, SchemaError> |
| 1584 | ): A { |
| 1585 | const exit = Effect.runSyncExit(self) |
| 1586 | if (Exit_.isSuccess(exit)) { |
| 1587 | return exit.value |
| 1588 | } |
| 1589 | throw getSchemaErrorOrThrow(exit.cause, "Sync adapter can only throw schema errors") |
| 1590 | } |
| 1591 | |
| 1592 | /** |
| 1593 | * Decodes an `unknown` input against a schema synchronously, returning an |
no test coverage detected