Skip to content

Commit

Permalink
Document minimum TypeScript version (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored May 10, 2024
1 parent 2d84752 commit de8e7da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ try {

## Troubleshooting

### Supported version

The minimum supported TypeScript version is [`5.1.6`](https://github.com/microsoft/TypeScript/releases/tag/v5.1.6).

### ES modules

This package uses pure ES modules. Therefore the TypeScript's `--module` compiler option must be set to [`nodenext`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext) or [`preserve`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#preserve). [More info.](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
Expand Down

0 comments on commit de8e7da

Please sign in to comment.