- npm init -y
- npm i axios
- npm i @types/axios --save-dev
Why doesn't VS Code 1.62 seem to provide the response object schema when typing code like this:
resp = await axios("https://httpstat.us/404");
resp.
<C-Space>
displays confusing / inappropriate completions.
What am I missing here? I even tried changing the file to TypeScript, but it didn't make a difference, leaving me puzzled about how to efficiently edit JavaScript. I would like the editor to recognize incorrect properties and suggest the correct ones along with documentation.