Skip to content

Commit

Permalink
Add open source Flow declaration for Metro module
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hramos authored and facebook-github-bot committed Jun 6, 2018
1 parent a8b7457 commit 1853e15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flow-github/metro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1853e15

Please sign in to comment.