(
this: Handlers<any, any>,
tag: Tag,
handler: (payload: any) => Effect.Effect<any, R1>
)
| 207 | _Endpoints: identity |
| 208 | }, |
| 209 | handle<Tag extends string, R1>( |
| 210 | this: Handlers<any, any>, |
| 211 | tag: Tag, |
| 212 | handler: (payload: any) => Effect.Effect<any, R1> |
| 213 | ): Handlers<any, any> { |
| 214 | return makeHandlers({ |
| 215 | group: this.group, |
| 216 | context: this.context, |
| 217 | handlers: { |
| 218 | ...this.handlers, |
| 219 | [tag]: { |
| 220 | event: this.group.events[tag], |
| 221 | context: this.context, |
| 222 | handler |
| 223 | } |
| 224 | } |
| 225 | }) |
| 226 | }, |
| 227 | pipe() { |
| 228 | return pipeArguments(this, arguments) |
| 229 | } |
no test coverage detected
searching dependent graphs…