From 5f8d8e90c2c43127b8a5d2fc5d18f16185c7a67e Mon Sep 17 00:00:00 2001 From: Sam Goldman Date: Thu, 14 Dec 2017 16:14:21 -0800 Subject: [PATCH] Switch to `declare module.exports` syntax Reviewed By: gabelevi Differential Revision: D6571796 fbshipit-source-id: 6a6d98b05953f40b825a260f44765689e91269a8 --- Libraries/react-native/react-native-interface.js | 2 +- flow/Map.js | 2 +- flow/Set.js | 2 +- flow/create-react-class.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/react-native/react-native-interface.js b/Libraries/react-native/react-native-interface.js index f651db6fe..764952ff8 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 d858114fd..9cc9c22f4 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 0d88bf45a..b81a23374 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 ba33969e1..238ff44cf 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; }