easemob / react-native-chat-sdk

MIT License
2 stars 10 forks source link

Type declaration entry point is incorrect #10

Closed EkaanshArora closed 2 years ago

EkaanshArora commented 2 years ago

The "types" key in package.json of the release on npm points to "lib/typescript/src/index.d.ts". This causes an error in VSCode: Could not find a declaration file for module 'agora-react-native-chat'.

Removing src from the path (changing it to "lib/typescript/index.d.ts") or moving the declaration files to the correct path should fix this issue.

AsteriskZuo commented 2 years ago

Thanks for your feedback, we will fix it in the next version 1.0.6, which is currently in closed beta. I will remove src.