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
Sam Goldman committed
Dec 15, 2017 at 04:17 UTC
d906de7f602df810c38aa622c83023228b047db6
1 file changed
+3
-3
scripts/flow/react-native-host-hooks.js
+3
-3
@@ -10,10 +10,10 @@
10
/* eslint-disable */
11
12
declare module 'deepDiffer' {
13
- declare function exports(one: any, two: any): boolean;
13
+ declare module.exports: (one: any, two: any) => boolean;
14
}
15
declare module 'deepFreezeAndThrowOnMutationInDev' {
16
- declare function exports<T>(obj: T): T;
16
+ declare module.exports: <T>(obj: T) => T;
17
}
18
declare module 'flattenStyle' {
19
}
@@ -83,7 +83,7 @@ declare module 'UIManager' {
83
): Promise<any>;
84
}
85
declare module 'View' {
86
- declare var exports: typeof React$Component;
86
+ declare module.exports: typeof React$Component;
87
}
88
89
declare module 'RTManager' {