(options: {
readonly success: Success
readonly error: Error
})
| 621 | * @since 4.0.0 |
| 622 | */ |
| 623 | export const Result = < |
| 624 | Success extends Schema.Constraint, |
| 625 | Error extends Schema.Constraint |
| 626 | >(options: { |
| 627 | readonly success: Success |
| 628 | readonly error: Error |
| 629 | }) => Schema.Union([Complete.Schema(options), Suspended]) |
| 630 | |
| 631 | const AnyOrVoid = Schema.Union([Schema.Any, Schema.Void]) |
| 632 |