Skip to content

Commit a70fe45

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Shim $PropertyType in react-native for now (#50271)
Summary: Pull Request resolved: #50271 In the next version of Flow, support for `$PropertyType` will be removed in favor of indexed access types. The final 2 usages in react-native is in `ReactNativeTypes`, which is synced from upstream react. Sync of facebook/react#32733 is currently blocked by test failures, so I will add the temporary shim to unblock releases. Changelog: [Internal] Reviewed By: panagosg7 Differential Revision: D71849353 fbshipit-source-id: d4787fe17ae52aa50d54f9fb7fb8b14c149aa1e6
1 parent 7d8ac66 commit a70fe45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/flow/global.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ declare var global: {
8686
// Undeclared properties are implicitly `any`.
8787
[string | symbol]: any,
8888
};
89+
90+
type $PropertyType<T, K> = T[K];

0 commit comments

Comments
 (0)