Use declare module.exports syntax for flow libdefs (#11861)

We added this to Flow in v0.25 (about 2 years ago), but never actually
deprecated the legacy `declare var exports` syntax. Hoping to do that
soon, so clearing up uses that I can find.

Test Plan: flow
This commit is contained in:
Sam Goldman
2017-12-15 04:17:46 -08:00
committed by Dan Abramov
parent cc52e06b49
commit d906de7f60

View File

@@ -10,10 +10,10 @@
/* eslint-disable */
declare module 'deepDiffer' {
declare function exports(one: any, two: any): boolean;
declare module.exports: (one: any, two: any) => boolean;
}
declare module 'deepFreezeAndThrowOnMutationInDev' {
declare function exports<T>(obj: T): T;
declare module.exports: <T>(obj: T) => T;
}
declare module 'flattenStyle' {
}
@@ -83,7 +83,7 @@ declare module 'UIManager' {
): Promise<any>;
}
declare module 'View' {
declare var exports: typeof React$Component;
declare module.exports: typeof React$Component;
}
declare module 'RTManager' {