Documentation / @ripl/vue / RiplListener
Type Alias: RiplListener<TPayload> ​
RiplListener<
TPayload> = (payload,event) =>void
Defined in: adapters/vue/src/types.ts:49
A forwarded Ripl event listener. Receives the event's payload directly, with the underlying Event — carrying target, timestamp and stopPropagation — as a second argument.
Type Parameters ​
| Type Parameter | Description |
|---|---|
TPayload | The payload the event carries. |
Parameters ​
| Parameter | Type |
|---|---|
payload | TPayload |
event | Event<TPayload> |
Returns ​
void