-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: cpojer Differential Revision: D16459480 fbshipit-source-id: e560be242ef170e407f634638a9a581dbf5dc309
- Loading branch information
1 parent
2d590a6
commit 69afb2a
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// flow-typed signature: b7ab86e40fd87c2d7414d5ceb45ecddb | ||
// flow-typed version: 6347e0da2b/eventemitter3_v3.x.x/flow_>=v0.25.x | ||
|
||
declare module 'eventemitter3' { | ||
declare type ListenerFn = (...args: any[]) => mixed | ||
declare class EventEmitter { | ||
static constructor(): EventEmitter, | ||
static prefixed: string | boolean, | ||
eventNames(): (string | Symbol)[], | ||
listeners(event: string | Symbol): ListenerFn[], | ||
listenerCount(event: string | Symbol): number, | ||
on(event: string | Symbol, listener: ListenerFn, context?: any): this, | ||
addListener(event: string | Symbol, listener: ListenerFn, context?: any): this, | ||
once(event: string | Symbol, listener: ListenerFn, context?: any): this, | ||
removeAllListeners(event?: string | Symbol): this, | ||
removeListener(event: string | Symbol, listener?: ListenerFn, context?: any, once?: boolean): this, | ||
off(event: string | Symbol, listener?: ListenerFn, context?: any, once?: boolean): this, | ||
emit(event: string, ...params?: any[]): this | ||
} | ||
declare module.exports: Class<EventEmitter> | ||
} | ||
|
||
// Filename aliases | ||
declare module 'eventemitter3/index' { | ||
declare module.exports: $Exports<'eventemitter3'> | ||
} | ||
declare module 'eventemitter3/index.js' { | ||
declare module.exports: $Exports<'eventemitter3'> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters