react-native-macos/types
Janic Duplessis c289442848 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: https://github.com/facebook/react-native/pull/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
2023-01-19 05:56:51 -08:00
..
__typetests__ Fix Errors with TypeScript Tests 2022-12-15 19:17:58 -08:00
modules Fixup TS Organization (#35169) 2022-11-02 14:58:37 -07:00
private Fixup TS Organization (#35169) 2022-11-02 14:58:37 -07:00
public internalize Slider module (#35825) 2023-01-16 02:42:18 -08:00
.npmignore Fix: Publish types folder (#34727) 2022-09-20 12:39:58 -07:00
index.d.ts Fix TurboModuleRegistry TS type (#35885) 2023-01-19 05:56:51 -08:00
tsconfig.json Fixup TS Organization (#35169) 2022-11-02 14:58:37 -07:00
tslint.json Move TypeScript declarations into react-native (#34614) 2022-09-19 12:26:00 -07:00