-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
Host 🏡Our `react-native-node-api-modules` packageOur `react-native-node-api-modules` packagegood first issueGood for newcomersGood for newcomers
Description
This function is currently typed to return void, which is not expected.
| requireNodeAddon(libraryName: string): void; |
Instead it should take a generic type parameter extending (and defaulting to) unknown.
Since we're no longer relying on codegen, we can also loose the extends TurboModule and the type import above:
| export interface Spec extends TurboModule { |
Metadata
Metadata
Assignees
Labels
Host 🏡Our `react-native-node-api-modules` packageOur `react-native-node-api-modules` packagegood first issueGood for newcomersGood for newcomers