updating Printer interface (#19014)
This commit is contained in:
1 parent
3675b1cfd5
commit
53859e0725
2 files changed
+22
-2
No files matched your search
@@ -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,
|
||||
// ...
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user