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

Reviewed By: calebmer

Differential Revision: D6579552

fbshipit-source-id: a46f27cca8065e9f3c46739f6a874dfb346c0c7d
This commit is contained in:
Sam Goldman 2017-12-18 17:04:29 -08:00 committed by Facebook Github Bot
parent dabb78b127
commit 632f1202ab
3 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}