Skip to content

Commit

Permalink
Switch to declare module.exports syntax
Browse files Browse the repository at this point in the history
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 5f8d8e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Libraries/react-native/react-native-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion flow/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion flow/Set.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion flow/create-react-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.