magic-js
magic-js copied to clipboard
WalletInfo type definitions are not set properly.
✅ Prerequisites
- [x] Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
- [x] Are you running the latest SDK version?
- [x] Are you reporting to the correct repository (
magic-sdk
)?
🐛 Description
I was using magic-sdk package and trying to get the current loggedin user's wallet details.
Below is the code that i am using inside one of my component.
See the type of declared walletInfo variable is WalletInfo, when trying to email or publicAddress value from that object, the types defination are not working properly.
But here is the actual data object that is being logged in the console. The types are clearly not working in the VSCODE.
Here is my magic-sdk version