terser 5.0.0 → 5.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/tools/terser.d.ts CHANGED
@@ -98,7 +98,7 @@ export interface FormatOptions {
98
98
  ascii_only?: boolean;
99
99
  beautify?: boolean;
100
100
  braces?: boolean;
101
- comments?: boolean | 'all' | 'some' | RegExp | ( (node: AST_Node, comment: {
101
+ comments?: boolean | 'all' | 'some' | RegExp | ( (node: any, comment: {
102
102
  value: string,
103
103
  type: 'comment1' | 'comment2' | 'comment3' | 'comment4',
104
104
  pos: number,
@@ -151,7 +151,6 @@ export interface MinifyOptions {
151
151
  }
152
152
 
153
153
  export interface MinifyOutput {
154
- ast?: AST_Node;
155
154
  code?: string;
156
155
  map?: RawSourceMap | string;
157
156
  }
@@ -165,4 +164,4 @@ export interface SourceMapOptions {
165
164
  url?: string | 'inline';
166
165
  }
167
166
 
168
- export async function minify(files: string | string[] | { [file: string]: string }, options?: MinifyOptions): Promise<MinifyOutput>;
167
+ export function minify(files: string | string[] | { [file: string]: string }, options?: MinifyOptions): Promise<MinifyOutput>;