Browse Source

Update static-type-checking.md

main
Vasiliy Vanchuk 6 years ago
committed by GitHub
parent
commit
6716745776
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      content/docs/static-type-checking.md

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

@ -216,9 +216,17 @@ Congrats! You've installed the latest version of TypeScript into your project. I
```
### Configuring the TypeScript Compiler {#configuring-the-typescript-compiler}
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:
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:
```bash
If you use [Yarn](https://yarnpkg.com/), run:
```shell
yarn run tsc --init
```
If you use [npm](https://www.npmjs.com/), run:
```shell
npx tsc --init
```

Loading…
Cancel
Save