Skip to content

Commit 6716745

Browse files
authored
Update static-type-checking.md
1 parent aaefe69 commit 6716745

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

content/docs/static-type-checking.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,17 @@ Congrats! You've installed the latest version of TypeScript into your project. I
216216
```
217217

218218
### Configuring the TypeScript Compiler {#configuring-the-typescript-compiler}
219-
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:
219+
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:
220220

221-
```bash
221+
If you use [Yarn](https://yarnpkg.com/), run:
222+
223+
```shell
224+
yarn run tsc --init
225+
```
226+
227+
If you use [npm](https://www.npmjs.com/), run:
228+
229+
```shell
222230
npx tsc --init
223231
```
224232

0 commit comments

Comments
 (0)