@ue-too/being / index / EventResult
型別別名: EventResult<States, Output>
EventResult<
States,Output> =EventNotHandled|EventHandled<States,Output>
定義於: interface.ts:159
Discriminated union representing the result of event handling.
型別參數
States
States extends string
Union of all possible state names
Output
Output = void
The output type for handled events
備註
Every event handler returns an EventResult, which is either:
- EventHandled: The event was processed successfully
- EventNotHandled: The event was not recognized/handled
Use the handled discriminant to narrow the type in TypeScript.