Skip to content

Commit d906de7

Browse files
samwgoldmangaearon
authored andcommitted
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
1 parent cc52e06 commit d906de7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/flow/react-native-host-hooks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
/* eslint-disable */
1111

1212
declare module 'deepDiffer' {
13-
declare function exports(one: any, two: any): boolean;
13+
declare module.exports: (one: any, two: any) => boolean;
1414
}
1515
declare module 'deepFreezeAndThrowOnMutationInDev' {
16-
declare function exports<T>(obj: T): T;
16+
declare module.exports: <T>(obj: T) => T;
1717
}
1818
declare module 'flattenStyle' {
1919
}
@@ -83,7 +83,7 @@ declare module 'UIManager' {
8383
): Promise<any>;
8484
}
8585
declare module 'View' {
86-
declare var exports: typeof React$Component;
86+
declare module.exports: typeof React$Component;
8787
}
8888

8989
declare module 'RTManager' {

0 commit comments

Comments
 (0)