diff --git a/packages/react-native/Libraries/Types/CodegenTypes.js b/packages/react-native/Libraries/Types/CodegenTypes.js index 6f843d7186f21b..3313a514f5f750 100644 --- a/packages/react-native/Libraries/Types/CodegenTypes.js +++ b/packages/react-native/Libraries/Types/CodegenTypes.js @@ -29,7 +29,8 @@ export type DirectEventHandler< export type Double = number; export type Float = number; export type Int32 = number; -export type UnsafeObject = $FlowFixMe; // Object is forbidden in strict mode +/* $FlowFixMe[unclear-type] Object is forbidden in strict mode */ +export type UnsafeObject = Object; export type UnsafeMixed = mixed; type DefaultTypes = number | boolean | string | $ReadOnlyArray; diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 28bfe0a27f00dd..0cc69f2c984f0e 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -8591,7 +8591,7 @@ export type DirectEventHandler = ( export type Double = number; export type Float = number; export type Int32 = number; -export type UnsafeObject = $FlowFixMe; +export type UnsafeObject = Object; export type UnsafeMixed = mixed; type DefaultTypes = number | boolean | string | $ReadOnlyArray; export type WithDefault = ?Type;