(success: A, error: E)
| 79 | * @since 4.0.0 |
| 80 | */ |
| 81 | export function Stream<A extends Schema.Constraint, E extends Schema.Constraint>(success: A, error: E): Stream<A, E> { |
| 82 | return Schema.make(schema.ast, { [StreamSchemaTypeId]: StreamSchemaTypeId, success, error }) |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Annotation that marks interruptions that originate from an RPC client |