Skip to content

Commit 804ce22

Browse files
committed
Add changlelog entry
1 parent 739bcad commit 804ce22

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

changelog_unreleased/api/XXXX.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#### Include available `printers` in plugin type declarations (#XXXX by @porada)
2+
3+
<!-- prettier-ignore -->
4+
```ts
5+
// Input
6+
import * as prettierPluginEstree from "prettier/plugins/estree";
7+
8+
// Prettier stable
9+
// Property 'printers' does not exist on type 'typeof import("prettier/plugins/estree")'. ts(2339)
10+
prettierPluginEstree.printers.estree; //=> any
11+
12+
// Prettier main
13+
prettierPluginEstree.printers.estree; //=> Printer
14+
prettierPluginEstree.printers["estree-json"]; //=> Printer
15+
```

0 commit comments

Comments
 (0)