Permalink
Browse files

Switch to `declare module.exports` syntax

Reviewed By: gabelevi

Differential Revision: D6571796

fbshipit-source-id: 6a6d98b05953f40b825a260f44765689e91269a8
  • Loading branch information...
samwgoldman authored and facebook-github-bot committed Dec 15, 2017
1 parent f4d627c commit 5f8d8e90c2c43127b8a5d2fc5d18f16185c7a67e
Showing with 4 additions and 4 deletions.
  1. +1 −1 Libraries/react-native/react-native-interface.js
  2. +1 −1 flow/Map.js
  3. +1 −1 flow/Set.js
  4. +1 −1 flow/create-react-class.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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}

0 comments on commit 5f8d8e9

Please sign in to comment.