Skip to content

Commit aaefe69

Browse files
authored
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.
1 parent 7abe468 commit aaefe69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/static-type-checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Congrats! You've installed the latest version of TypeScript into your project. I
219219
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:
220220

221221
```bash
222-
tsc --init
222+
npx tsc --init
223223
```
224224

225225
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).

0 commit comments

Comments
 (0)