From 8e17bfd144f1794398b2cb37ccfbd2cfcb844566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Wed, 22 Mar 2023 15:39:52 +0000 Subject: [PATCH] Make InternalInstanceHandle type opaque in ReactNativeTypes (#26461) ## Summary This type was defined as `mixed` to avoid bringing the whole definition from React to React Native, but its definition is visible to RN. This type should be opaque to RN, so this makes it explicit. ## How did you test this change? Applied the same changes in the React Native repository and could use the type without issues. --- packages/react-native-renderer/src/ReactNativeTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 25436085debdb..129613d54e7cf 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -213,7 +213,7 @@ export type ReactNativeType = { }; export opaque type Node = mixed; -type InternalInstanceHandle = mixed; +export opaque type InternalInstanceHandle = mixed; type PublicInstance = mixed; export type ReactFabricType = {