Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ npm i --save-dev ts-runtime-checks
Sadly, `tsc` doesn't allow you to add custom transformers, so you must use a tool which adds them:

<details>
<summary>Usage with ttypescript</summary>
<summary>Usage with ts-patch</summary>

```
npm i --save-dev ttypescript
npm i --save-dev ts-patch
```

and add the ts-runtime-checks transformer to your tsconfig.json:
Expand All @@ -56,7 +56,9 @@ and add the ts-runtime-checks transformer to your tsconfig.json:
}
```

Afterwards you must use the `ttsc` CLI command to transpile your typescript code.
Afterwards you must use the `tspc` CLI command to transpile your typescript code.

See [ts-patch](https://github.com/nonara/ts-patch) for integrating with additional tools such as ts-node.
</details>

<details>
Expand Down
Loading