Interface: UseOnEventsOptions<E>
Defined in: src/wirestate-lit/events/use-on-events.ts:13
Represents options for useOnEvents.
Type Parameters
| Type Parameter | Default type |
|---|---|
E extends Event | Event |
Properties
handler
ts
handler: EventHandler<E>;Defined in: src/wirestate-lit/events/use-on-events.ts:17
The event handler function.
types?
ts
optional types?: Optional<EventType | readonly EventType[]>;Defined in: src/wirestate-lit/events/use-on-events.ts:21
Event types to listen for. If null or undefined, all events will be handled.