Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TurboModuleRegistry TS type (#35885)
Summary: TurboModuleRegistry export functions and not a TurboModuleRegistry object. See https://github.com/facebook/react-native/blob/main/Libraries/TurboModule/TurboModuleRegistry.js#L37 ## Changelog [GENERAL] [FIXED] - Fix TurboModuleRegistry TS type Pull Request resolved: #35885 Test Plan: Tested that the import doesn't generate a type error when used correctly. ```ts import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; export default TurboModuleRegistry.get<Spec>('RNCSafeAreaContext'); ``` Reviewed By: christophpurrer Differential Revision: D42604208 Pulled By: NickGerleman fbshipit-source-id: e6259df24aaf6e37b32cc4b51947294fd655837e
- Loading branch information