Installation and setup
suggest changeAfter installing a current Node.js release and npm, install TypeScript in each project so that builds are reproducible:
npm install --save-dev typescript
npx tsc --init
npx tsc --noEmit
Use the project's compiler through npx tsc or a package script. Avoid relying on a globally installed compiler in shared projects. tsc --noEmit checks the project without writing JavaScript; it does not execute the program or replace tests. Until a TypeScript file is part of the project, that check reports that no inputs were found.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents