Skip to main content

TransformedEvent TypeAlias

Transforms the event overload by replacing IEventThisPlaceHolder with TThis in the event listener arguments and having the overload return TTHis as well

Signature

export type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (...args: ReplaceIEventThisPlaceHolder<A, TThis>) => void) => TThis;

Type Parameters

Parameter Constraint Description
TThis
E
A any[]