I've come across this snippet of code:
import * as Evernote from 'Evernote';
console.log(typeof Evernote.Client);
It returns function
, which is the expected result.
However, I encountered an error in VSCode:
https://i.sstatic.net/s3JBQ.png The error prompts me to use Client as follows:
import \* as Evernote from 'Evernote';
console.log(typeof Evernote.Evernote.Client);
My previous question (vscode typescript intellisense not working for evernote) clarified that importing Evernote with \* is the correct method. How can I resolve this issue with VSCode?