updating Printer interface (#19014)

This commit is contained in:
Klaus Hott Vidal authored and GitHub committed 2026-04-10 06:00:49 +08:00
1 parent 3675b1cfd5
commit 53859e0725
2 files changed
+22 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#### updating `Printer` interface (#19014 by @Janther)
```diff
export interface Printer<T = any> {
// ...
- print: (AstPath<T>) => Doc,
+ print: (
+ selector?: string | number | Array<string | number> | AstPath<T>,
+ args?: unknown,
+ ) => Doc,
// ...
}
```