Files
react/packages/react-devtools-extensions/flow.js
Brian Vaughn edc46d7be7 Misc Flow and import fixes
1. Fixed all reported Flow errors
2. Added a few missing package declarations
3. Deleted ReactDebugHooks fork in favor of react-debug-tools
2019-08-13 17:53:28 -07:00

29 lines
703 B
JavaScript

// @flow
declare module 'node-events' {
declare class EventEmitter<Events: Object> {
addListener<Event: $Keys<Events>>(
event: Event,
listener: (...$ElementType<Events, Event>) => any
): void;
emit: <Event: $Keys<Events>>(
event: Event,
...$ElementType<Events, Event>
) => void;
removeListener(event: $Keys<Events>, listener: Function): void;
removeAllListeners(event?: $Keys<Events>): void;
}
declare export default typeof EventEmitter;
}
declare var __DEV__: boolean;
declare var __TEST__: boolean;
declare var jasmine: {|
getEnv: () => {|
afterEach: (callback: Function) => void,
beforeEach: (callback: Function) => void,
|},
|};