Skip to content

Commit 8e17bfd

Browse files
authoredMar 22, 2023
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.
1 parent 8bdf162 commit 8e17bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/react-native-renderer/src/ReactNativeTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export type ReactNativeType = {
213213
};
214214

215215
export opaque type Node = mixed;
216-
type InternalInstanceHandle = mixed;
216+
export opaque type InternalInstanceHandle = mixed;
217217
type PublicInstance = mixed;
218218

219219
export type ReactFabricType = {

0 commit comments

Comments
 (0)