@putout/engine-parser 15.2.0 → 15.3.0
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/lib/parser.d.ts +2 -3
- package/lib/template.js +1 -0
- package/package.json +1 -1
package/lib/parser.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface PrinterOptions {
|
|
|
17
17
|
visitors?: PrinterVisitors;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// --- Parse ---
|
|
21
20
|
export interface ParseOptions {
|
|
22
21
|
parser?: 'babel' | 'acorn' | 'espree' | 'esprima' | 'tenko';
|
|
23
22
|
printer?: 'putout' | 'babel';
|
|
@@ -27,7 +26,6 @@ export interface ParseOptions {
|
|
|
27
26
|
|
|
28
27
|
export function parse(source: string, options?: ParseOptions): Program;
|
|
29
28
|
|
|
30
|
-
// --- Print ---
|
|
31
29
|
type PrinterName = 'putout' | 'babel';
|
|
32
30
|
type PrinterTuple = [
|
|
33
31
|
name: PrinterName,
|
|
@@ -52,6 +50,7 @@ export namespace template {
|
|
|
52
50
|
|
|
53
51
|
export namespace ast {
|
|
54
52
|
export function fresh(source: string, options?: Record<string, unknown>): Node;
|
|
55
|
-
}
|
|
53
|
+
}
|
|
54
|
+
export namespace program {
|
|
56
55
|
export function ast(source: string, options?: Record<string, unknown>): Node;
|
|
57
56
|
}}
|
package/lib/template.js
CHANGED