(
this: EventGroup<Events>,
error: Error
)
| 163 | }) |
| 164 | }, |
| 165 | addError<Error extends Schema.Top>( |
| 166 | this: EventGroup<Events>, |
| 167 | error: Error |
| 168 | ): EventGroup<Event.AddError<Events, Error>> { |
| 169 | const events = Record.map<string, Events, Event.AddError<Events, Error>>( |
| 170 | this.events, |
| 171 | (event) => Event.addError(event, error) |
| 172 | ) |
| 173 | return makeProto({ events }) |
| 174 | }, |
| 175 | pipe() { |
| 176 | return pipeArguments(this, arguments) |
| 177 | } |