Permalink
Browse files

Switch `declare function exports` to `declare module.exports`

Reviewed By: calebmer

Differential Revision: D6579552

fbshipit-source-id: a46f27cca8065e9f3c46739f6a874dfb346c0c7d
  • Loading branch information...
samwgoldman authored and facebook-github-bot committed Dec 19, 2017
1 parent dabb78b commit 632f1202ab3f9dd300a53f096bc15325e0d8f6c1
Showing with 2 additions and 6 deletions.
  1. +0 −2 flow/Map.js
  2. +0 −2 flow/Set.js
  3. +2 −2 flow/fbjs.js
@@ -32,7 +32,5 @@ declare module "Map" {
values(): Iterator<V>;
}

// Don't "declare class exports" directly, otherwise in error messages our
// show up as "exports" instead of "Map" or "MapPolyfill".
declare module.exports: typeof MapPolyfill;
}
@@ -30,7 +30,5 @@ declare module "Set" {
values(): Iterator<T>;
}

// Don't "declare class exports" directly, otherwise in error messages our
// show up as "exports" instead of "Set" or "SetPolyfill".
declare module.exports: typeof SetPolyfill;
}
@@ -8,9 +8,9 @@
*/

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

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

0 comments on commit 632f120

Please sign in to comment.