diff --git a/Libraries/react-native/react-native-interface.js b/Libraries/react-native/react-native-interface.js index f651db6fe02..764952ff891 100644 --- a/Libraries/react-native/react-native-interface.js +++ b/Libraries/react-native/react-native-interface.js @@ -24,5 +24,5 @@ declare var Headers: any; declare var Request: any; declare var Response: any; declare module requestAnimationFrame { - declare var exports: (callback: any) => any; + declare module.exports: (callback: any) => any; } diff --git a/flow/Map.js b/flow/Map.js index d858114fd91..9cc9c22f4ee 100644 --- a/flow/Map.js +++ b/flow/Map.js @@ -34,5 +34,5 @@ declare module "Map" { // Don't "declare class exports" directly, otherwise in error messages our // show up as "exports" instead of "Map" or "MapPolyfill". - declare var exports: typeof MapPolyfill; + declare module.exports: typeof MapPolyfill; } diff --git a/flow/Set.js b/flow/Set.js index 0d88bf45a24..b81a23374c1 100644 --- a/flow/Set.js +++ b/flow/Set.js @@ -32,5 +32,5 @@ declare module "Set" { // Don't "declare class exports" directly, otherwise in error messages our // show up as "exports" instead of "Set" or "SetPolyfill". - declare var exports: typeof SetPolyfill; + declare module.exports: typeof SetPolyfill; } diff --git a/flow/create-react-class.js b/flow/create-react-class.js index ba33969e147..238ff44cf01 100644 --- a/flow/create-react-class.js +++ b/flow/create-react-class.js @@ -13,5 +13,5 @@ // TODO (acdlite) Remove this file once flowtype/flow-typed/pull/773 is merged declare module 'create-react-class' { - declare var exports: React$CreateClass; + declare module.exports: React$CreateClass; }