Skip to content

Commit

Permalink
Make InternalInstanceHandle type opaque in ReactNativeTypes (#26461)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
rubennorte committed Mar 22, 2023
1 parent 8bdf162 commit 8e17bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-renderer/src/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8e17bfd

Please sign in to comment.