mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
12 lines
278 B
JavaScript
12 lines
278 B
JavaScript
// @flow
|
|
|
|
declare module 'events' {
|
|
declare class EventEmitter {
|
|
addListener: (type: string, fn: Function) => void;
|
|
emit: (type: string, data: any) => void;
|
|
removeListener: (type: string, fn: Function) => void;
|
|
}
|
|
|
|
declare export default typeof EventEmitter;
|
|
}
|