Remove dependency on NodeJS definitions
This commit is contained in:
Родитель
c63ba55bfd
Коммит
a2ec02930c
|
@ -1,4 +1,4 @@
|
|||
class EventEmitter extends NodeJS.EventEmitter {
|
||||
class EventEmitter {
|
||||
addListener(event: string, listener: Function): this;
|
||||
on(event: string, listener: Function): this;
|
||||
once(event: string, listener: Function): this;
|
||||
|
@ -9,6 +9,9 @@
|
|||
listeners(event: string): Function[];
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
listenerCount(type: string): number;
|
||||
prependListener(event: string, listener: Function): this;
|
||||
prependOnceListener(event: string, listener: Function): this;
|
||||
eventNames(): string[];
|
||||
}
|
||||
|
||||
class Accelerator extends String {
|
||||
|
@ -19,4 +22,4 @@
|
|||
preventDefault: Function;
|
||||
sender: WebContents;
|
||||
returnValue?: any;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче