@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
Remarks
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.