Skip to content

TypeScript Support

Ivo Yankulovski edited this page Jul 26, 2020 · 7 revisions

Install node @types by command:

npm install @types/node -g

npm install @types/node --save-dev

Link to NPM

Link to GitHub

Another way is to copy-paste the global updated directory of @types/node into repo node_modules/@types.

Configure TypeScript VSCode project

Create folder on your file system and export/checkout/put all additional local or remote project folders.
Create folder node_modules and put symlinks of @types inside, so it can appear on top of code project.
Add symlinks of any other folder and configure workspace environment to follow links on local system.
Compile separate tsconfig.json folders by calling from terminal tsc --project ./path-to-local-project/.

Clone this wiki locally