espolar 0.2.1 → 0.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/dist/index.d.ts CHANGED
@@ -92,8 +92,9 @@ interface PrinterContext<Data = any> {
92
92
  write(text: string): void;
93
93
  writeMapped(text: string, sourceStart: number, sourceEnd: number, data?: Data): void;
94
94
  writeNode(node: AST.Node | null | undefined): void;
95
- writeNodeList(nodes: readonly (AST.Node | null | undefined)[], separator: string): void;
96
- writeNodeListWithSourceGaps(nodes: readonly (AST.Node | null | undefined)[], fallbackSeparator: string): void;
95
+ writeNodeList(nodes: readonly (AST.Node | null)[], separator: string): void;
96
+ writeExpressionListWithCommaSep(nodes: readonly (AST.Expression | AST.SpreadElement | null)[]): void;
97
+ writeNodeListWithNewLineSep(nodes: readonly (AST.ProgramStatement | AST.ClassElement)[]): void;
97
98
  writeSource(start: number, end: number, data?: Data): void;
98
99
  writePreservedNode(node: AST.Node): void;
99
100
  appendMapping(sourceRange: SourceRange, generatedStart: number, generatedEnd: number, data?: Data): void;
@@ -379,10 +380,7 @@ declare function printTSDeclareFunction(node: AST.TSDeclareFunction, context: Pr
379
380
  declare function printTSParameterProperty(node: AST.TSParameterProperty, context: PrinterContext): void;
380
381
  declare function printTSExportAssignment(node: AST.TSExportAssignment, context: PrinterContext): void;
381
382
  declare function printTSNamespaceExportDeclaration(node: AST.TSNamespaceExportDeclaration, context: PrinterContext): void;
382
- declare function printTSInstantiationExpression(node: {
383
- expression: AST.Node;
384
- typeArguments: AST.Node;
385
- }, context: PrinterContext): void;
383
+ declare function printTSInstantiationExpression(node: AST.TSInstantiationExpression, context: PrinterContext): void;
386
384
  declare function printTSParenthesizedType(node: {
387
385
  typeAnnotation: AST.Node;
388
386
  }, context: PrinterContext): void;