Switch `declare function exports` to `declare module.exports`
Reviewed By: calebmer Differential Revision: D6579552 fbshipit-source-id: a46f27cca8065e9f3c46739f6a874dfb346c0c7d
This commit is contained in:
parent
dabb78b127
commit
632f1202ab
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue