Skip to content

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 ParameterDescription
TPayloadThe payload the event carries.

Parameters ​

ParameterType
payloadTPayload
eventEvent<TPayload>

Returns ​

void