Type alias OverriddenMethods<TEmitter, TEventRecord, TEmitRecord>
OverriddenMethods<TEmitter, TEventRecord, TEmitRecord>: {
addEventListener: any;
addListener: any;
emit: any;
on: any;
once: any;
removeEventListener: any;
removeListener: any;
}
Type Parameters
-
TEmitter
-
TEventRecord
-
TEmitRecord = TEventRecord
Type declaration
-
addEventListener:function
- addEventListener<P, T>(this: T, event: P, listener: ((...args: ListenerType<TEventRecord[P]>) => void)): EEMethodReturnType<TEmitter, "addEventListener", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: ListenerType<TEventRecord[P]>) => void)
Returns EEMethodReturnType<TEmitter, "addEventListener", T, void>
- addEventListener(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void
-
addListener:function
- addListener<P, T>(this: T, event: P, listener: ((...args: ListenerType<TEventRecord[P]>) => void)): EEMethodReturnType<TEmitter, "addListener", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: ListenerType<TEventRecord[P]>) => void)
Returns EEMethodReturnType<TEmitter, "addListener", T, void>
- addListener(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void
-
emit:function
- emit<P, T>(this: T, event: P, ...args: ListenerType<TEmitRecord[P]>): EEMethodReturnType<TEmitter, "emit", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
- emit(event: typeof assignmentCompatibilityHack, ...args: any[]): void
-
Returns void
-
on:function
- on<P, T>(this: T, event: P, listener: ((...args: ListenerType<TEventRecord[P]>) => void)): EEMethodReturnType<TEmitter, "on", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: ListenerType<TEventRecord[P]>) => void)
- on(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void
-
once:function
- once<P, T>(this: T, event: P, listener: ((...args: ListenerType<TEventRecord[P]>) => void)): EEMethodReturnType<TEmitter, "once", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: ListenerType<TEventRecord[P]>) => void)
- once(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void
-
removeEventListener:function
- removeEventListener<P, T>(this: T, event: P, listener: ((...args: any[]) => any)): EEMethodReturnType<TEmitter, "removeEventListener", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns EEMethodReturnType<TEmitter, "removeEventListener", T, void>
- removeEventListener(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void
-
removeListener:function
- removeListener<P, T>(this: T, event: P, listener: ((...args: any[]) => any)): EEMethodReturnType<TEmitter, "removeListener", T, void>
-
Type Parameters
-
P extends string | number | symbol
-
T
Parameters
-
this: T
-
event: P
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns EEMethodReturnType<TEmitter, "removeListener", T, void>
- removeListener(event: typeof assignmentCompatibilityHack, listener: ((...args: any[]) => any)): void
-
Parameters
-
-
listener: ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
Returns void