Skip to content

Commit 632f120

Browse files
samwgoldmanfacebook-github-bot
authored andcommittedDec 19, 2017
Switch declare function exports to declare module.exports
Reviewed By: calebmer Differential Revision: D6579552 fbshipit-source-id: a46f27cca8065e9f3c46739f6a874dfb346c0c7d
1 parent dabb78b commit 632f120

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed
 

‎flow/Map.js

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,5 @@ declare module "Map" {
3232
values(): Iterator<V>;
3333
}
3434

35-
// Don't "declare class exports" directly, otherwise in error messages our
36-
// show up as "exports" instead of "Map" or "MapPolyfill".
3735
declare module.exports: typeof MapPolyfill;
3836
}

‎flow/Set.js

-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ declare module "Set" {
3030
values(): Iterator<T>;
3131
}
3232

33-
// Don't "declare class exports" directly, otherwise in error messages our
34-
// show up as "exports" instead of "Set" or "SetPolyfill".
3533
declare module.exports: typeof SetPolyfill;
3634
}

‎flow/fbjs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010
declare module 'fbjs/lib/invariant' {
11-
declare function exports<T>(condition: any, message: string, ...args: Array<any>): void;
11+
declare module.exports: <T>(condition: any, message: string, ...args: Array<any>) => void;
1212
}
1313

1414
declare module 'fbjs/lib/nullthrows' {
15-
declare function exports<T>(value: ?T): T;
15+
declare module.exports: <T>(value: ?T) => T;
1616
}

0 commit comments

Comments
 (0)
Please sign in to comment.