b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
96 stars 85 forks source link

in typescript project show showing error for library. Could not find a declaration file for module 'react-native-pusher-push-notifications'. #105

Closed thtRajasthaniGuy closed 1 year ago

thtRajasthaniGuy commented 1 year ago

Could not find a declaration file for module 'react-native-pusher-push-notifications'. 'd:/intimetec/lifesabundance/node_modules/react-native-pusher-push-notifications/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-native-pusher-push-notifications if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-pusher-push-notifications';

when run `npm i --save-dev @types/react-native-pusher-push-notifications this command , error : this library not register.

thtRajasthaniGuy commented 1 year ago

found the solution. create new file d.ts file and in this file declare module 'react-native-pusher-push-notifications';

declare the module.