Add open source Flow declaration for Metro module

Summary:
Fix Flow failure by adding a declaration to the Flow config used in open source. This did not get caught internally because we use a different Flow config.

Release Notes
-------------
[INTERNAL] [MINOR] [Flow] - Fix Flow config.

Reviewed By: rafeca

Differential Revision: D8257641

fbshipit-source-id: 3f4b2cbe622b2e76aa018e9369216a6b9ac25f47
This commit is contained in:
Héctor Ramos 2018-06-05 18:51:26 -07:00 committed by Facebook Github Bot
parent a8b74576da
commit 1853e15190
1 changed files with 6 additions and 2 deletions

View File

@ -12,14 +12,18 @@ declare module 'metro' {
declare module.exports: any;
}
declare module 'metro/src/lib/TerminalReporter' {
declare module 'metro/src/HmrServer' {
declare module.exports: any;
}
declare module 'metro/src/HmrServer' {
declare module 'metro/src/lib/attachWebsocketServer' {
declare module.exports: any;
}
declare module 'metro/src/lib/bundle-modules/HMRClient' {
declare module.exports: any;
}
declare module 'metro/src/lib/TerminalReporter' {
declare module.exports: any;
}