We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739bcad commit 804ce22Copy full SHA for 804ce22
1 file changed
changelog_unreleased/api/XXXX.md
@@ -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