mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
21 lines
454 B
JavaScript
21 lines
454 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;
|
|
}
|
|
|
|
declare var __DEV__: boolean;
|
|
|
|
declare var jasmine: {|
|
|
getEnv: () => {|
|
|
afterEach: (callback: Function) => void,
|
|
beforeEach: (callback: Function) => void,
|
|
|},
|
|
|};
|