Browse Source

Fix command for initializing tsconfig

Project dependency doesn't add itself it global PATH. So call `tsc` will work either with globally installed typescript, or from npm/yarn script.
main
Vasiliy Vanchuk 6 years ago
committed by GitHub
parent
commit
aaefe69287
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/static-type-checking.md

2
content/docs/static-type-checking.md

@ -219,7 +219,7 @@ Congrats! You've installed the latest version of TypeScript into your project. I
The compiler is of no help to us until we tell it what to do. In TypeScript, these rules are defined in a special file called `tsconfig.json`. To generate this file run:
```bash
tsc --init
npx tsc --init
```
Looking at the now generated `tsconfig.json`, you can see that there are many options you can use to configure the compiler. For a detailed description of all the options, check [here](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html).

Loading…
Cancel
Save