(eventName: string, callback: (...args: any[]) => void)
| 167 | ): Subscription; |
| 168 | on(eventName: "*", callback: (eventName: string, data: unknown) => void): Subscription; |
| 169 | on(eventName: string, callback: (...args: any[]) => void): Subscription { |
| 170 | if (this.disposed) { |
| 171 | return { off() {} }; |
| 172 | } |
| 173 | return this.emitter.on(eventName as any, callback as any); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Emit a custom event through the FSM. Built-in lifecycle events are |
no outgoing calls
no test coverage detected