@putout/printer 18.42.0 → 18.42.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.08.31, v18.42.1
2
+
3
+ fix:
4
+ - 9ade0b23 @putout/printer: types: Printer
5
+
1
6
  2026.08.31, v18.42.0
2
7
 
3
8
  feature:
package/lib/printer.d.ts CHANGED
@@ -18,12 +18,9 @@ export interface Semantics {
18
18
  trailingComma: boolean;
19
19
  }
20
20
 
21
- export type Print = (input: string | Node) => void;
22
-
21
+ export type PrinterPrint = (input: string | Node) => void;
23
22
  export type Indent = () => void;
24
-
25
23
  export type Traverse = (input: Node) => void;
26
-
27
24
  export type MaybeCondition = (condition: boolean) => void;
28
25
 
29
26
  export type MaybeIndent = {
@@ -43,7 +40,7 @@ export interface Maybe {
43
40
  }
44
41
 
45
42
  export interface Printer {
46
- print: Print;
43
+ print: PrinterPrint;
47
44
  maybe: Maybe;
48
45
  indent: Indent;
49
46
  traverse: Traverse;
@@ -61,7 +58,8 @@ export interface Options {
61
58
  visitors?: Visitors;
62
59
  }
63
60
 
64
- export function print(ast: Node, options?: Options): string;
61
+ type Print = (ast: Node, options?: Options) => string;
62
+ export const print: Print;
65
63
 
66
- export declare function maybeVisitor(plugin: Visitor, path: Node, printer: Print, semantics: Semantics): void;
64
+ export declare function maybeVisitor(plugin: Visitor, path: Node, printer: Printer, semantics: Semantics): void;
67
65
  export const visitors: Visitors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.42.0",
3
+ "version": "18.42.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",