mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Context is optional, uses "this" as fallback.
This commit is contained in:
Vendored
+1
-1
@@ -431,7 +431,7 @@ declare namespace p2 {
|
||||
|
||||
export class EventEmitter {
|
||||
|
||||
on(type: string, listener: Function, context: any): EventEmitter;
|
||||
on(type: string, listener: Function, context?: any): EventEmitter;
|
||||
has(type: string, listener: Function): boolean;
|
||||
off(type: string, listener: Function): EventEmitter;
|
||||
emit(event: any): EventEmitter;
|
||||
|
||||
Reference in New Issue
Block a user