@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 CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.06.22, v18.21.1
2
+
3
+ fix:
4
+ - 0569800a @putout/printer: dts: MaybeIndent
5
+
1
6
  2026.06.22, v18.21.0
2
7
 
3
8
  feature:
package/lib/printer.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {type Node} from '@putout/babel';
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: typeof MaybeIndent;
42
+ indent: MaybeIndent;
39
43
  }
40
44
 
41
45
  export interface Printer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.21.0",
3
+ "version": "18.21.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",