Skip to content

Commit

Permalink
Update pr-9473
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 6, 2020
1 parent 533c107 commit 5091e02
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion changelog_unreleased/typescript/pr-9473.md
@@ -1,6 +1,24 @@
#### [HIGHLIGHT]Support TypeScript 4.1 via Babel (#9473 by @sosukesuzuki)

`--parser=babel-ts` is required.
If you want to format TypeScript 4.1 features, please update your configuration file to use the `babel-ts` parser as below:

```diff
// .prettierrc
{
+ "overrides": [
+ {
+ "files": "*.ts",
+ "options": {
+ "parser": "babel-ts"
+ }
+ }
+ ]
}
```

See documentation for [Configuration Overrides](https://prettier.io/docs/en/configuration.html#configuration-overrides) and [Parser Options](https://prettier.io/docs/en/options.html#parser) for detail.

If you don't use TypeScript 4.1, no additional configuration is required.

##### Key Remapping In Mapped Types

Expand Down

0 comments on commit 5091e02

Please sign in to comment.