Skip to content

Commit 5f8d8e9

Browse files
samwgoldmanfacebook-github-bot
authored andcommitted
Switch to declare module.exports syntax
Reviewed By: gabelevi Differential Revision: D6571796 fbshipit-source-id: 6a6d98b05953f40b825a260f44765689e91269a8
1 parent f4d627c commit 5f8d8e9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Libraries/react-native/react-native-interface.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ declare var Headers: any;
2424
declare var Request: any;
2525
declare var Response: any;
2626
declare module requestAnimationFrame {
27-
declare var exports: (callback: any) => any;
27+
declare module.exports: (callback: any) => any;
2828
}

flow/Map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ declare module "Map" {
3434

3535
// Don't "declare class exports" directly, otherwise in error messages our
3636
// show up as "exports" instead of "Map" or "MapPolyfill".
37-
declare var exports: typeof MapPolyfill;
37+
declare module.exports: typeof MapPolyfill;
3838
}

flow/Set.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ declare module "Set" {
3232

3333
// Don't "declare class exports" directly, otherwise in error messages our
3434
// show up as "exports" instead of "Set" or "SetPolyfill".
35-
declare var exports: typeof SetPolyfill;
35+
declare module.exports: typeof SetPolyfill;
3636
}

flow/create-react-class.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
// TODO (acdlite) Remove this file once flowtype/flow-typed/pull/773 is merged
1414

1515
declare module 'create-react-class' {
16-
declare var exports: React$CreateClass;
16+
declare module.exports: React$CreateClass;
1717
}

0 commit comments

Comments
 (0)