@putout/printer 18.21.0 → 18.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +5 -0
- package/lib/printer.d.ts +6 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/lib/printer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Node} from '@putout/babel';
|
|
2
2
|
|
|
3
3
|
export interface Format {
|
|
4
4
|
indent: string;
|
|
@@ -19,8 +19,11 @@ export interface Semantics {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export type Print = (input: string | Node) => void;
|
|
22
|
+
|
|
22
23
|
export type Indent = () => void;
|
|
24
|
+
|
|
23
25
|
export type Traverse = (input: Node) => void;
|
|
26
|
+
|
|
24
27
|
export type MaybeCondition = (condition: boolean) => void;
|
|
25
28
|
|
|
26
29
|
export type MaybeIndent = {
|
|
@@ -30,12 +33,13 @@ export type MaybeIndent = {
|
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
export type MaybePrint = (condition: boolean, input: string | Node) => void;
|
|
36
|
+
|
|
33
37
|
export type MaybeTraverse = (condition: boolean, input: Node) => void;
|
|
34
38
|
|
|
35
39
|
export interface Maybe {
|
|
36
40
|
print: MaybePrint;
|
|
37
41
|
traverse: MaybeTraverse;
|
|
38
|
-
indent:
|
|
42
|
+
indent: MaybeIndent;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
export interface Printer {
|
package/package.json
CHANGED