rem’s Twitter Archive
—№ 78,503
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
Anyone know why VS Code picks up the type correctly only when I've got index.d.ts open, but if it's closed, it doesn't? Note that this is *not* a TypeScript project, but I use jsdoc for hints in vscode.
On twitter.com
❤️ 1
Favorite
2023 Oct 22
Mood
0
…in reply to @rem
Solved. Add
jsconfig.json
to root with: { "compilerOptions": { "typeRoots": ["./index.d.ts"] } }
Permalink
On twitter.com
♻️ 1
Retweets
❤️ 4
Favorites
2023 Oct 22
Mood +
1
🙂