mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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:
6
scripts/flow/react-native-host-hooks.js
vendored
6
scripts/flow/react-native-host-hooks.js
vendored
@@ -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' {
|
||||
|
||||
Reference in New Issue
Block a user