mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Replace $FlowFixMe in NativeModules (#48757)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48757 Changelog: [General][Changed] - Replaced $FlowFixMe in NativeModules with any type Reviewed By: elicwhite, rshest Differential Revision: D68327176 fbshipit-source-id: 9cde462853012bbe40d0caa40d0c18fa32c699a1
This commit is contained in:
1 parent
5b07743ae9
commit
286a360d9b
2 files changed
+3
-2
No files matched your search
@@ -176,7 +176,8 @@ function updateErrorWithErrorData(
|
||||
return Object.assign(error, errorData || {});
|
||||
}
|
||||
|
||||
let NativeModules: {[moduleName: string]: $FlowFixMe, ...} = {};
|
||||
/* $FlowFixMe[unclear-type] unclear type of NativeModules */
|
||||
let NativeModules: {[moduleName: string]: any, ...} = {};
|
||||
if (global.nativeModuleProxy) {
|
||||
NativeModules = global.nativeModuleProxy;
|
||||
} else {
|
||||
|
||||
@@ -1348,7 +1348,7 @@ exports[`public API should not change unintentionally Libraries/BatchedBridge/Na
|
||||
?$ReadOnlyArray<number>,
|
||||
];
|
||||
export type MethodType = \\"async\\" | \\"promise\\" | \\"sync\\";
|
||||
declare let NativeModules: { [moduleName: string]: $FlowFixMe, ... };
|
||||
declare let NativeModules: { [moduleName: string]: any, ... };
|
||||
declare export default typeof NativeModules;
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in new issue
Block a user