source: trip-planner-front/node_modules/terser-webpack-plugin/types/minify.d.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
1export type RawSourceMap = import("source-map").RawSourceMap;
2export type ExtractCommentsOptions =
3 import("./index.js").ExtractCommentsOptions;
4export type CustomMinifyFunction = import("./index.js").CustomMinifyFunction;
5export type TerserMinifyOptions = import("terser").MinifyOptions;
6export type MinifyOutput = import("terser").MinifyOutput;
7export type FormatOptions = import("terser").FormatOptions;
8export type MangleOptions = import("terser").MangleOptions;
9export type ExtractCommentsFunction =
10 import("./index.js").ExtractCommentsFunction;
11export type ExtractCommentsCondition =
12 import("./index.js").ExtractCommentsCondition;
13export type CustomMinifyOptions = any;
14export type InternalMinifyOptions = {
15 name: string;
16 input: string;
17 inputSourceMap?: import("source-map").RawSourceMap | undefined;
18 extractComments: ExtractCommentsOptions;
19 minify?: import("./index.js").CustomMinifyFunction | undefined;
20 minifyOptions: TerserMinifyOptions | CustomMinifyOptions;
21};
22export type ExtractedComments = Array<string>;
23export type InternalMinifyResult = Promise<
24 MinifyOutput & {
25 extractedComments?: string[];
26 }
27>;
28export type NormalizedTerserMinifyOptions = TerserMinifyOptions & {
29 sourceMap: undefined;
30} & (
31 | {
32 output: FormatOptions & {
33 beautify: boolean;
34 };
35 }
36 | {
37 format: FormatOptions & {
38 beautify: boolean;
39 };
40 }
41 );
42/**
43 * @param {InternalMinifyOptions} options
44 * @returns {InternalMinifyResult}
45 */
46export function minify(options: InternalMinifyOptions): InternalMinifyResult;
47/**
48 * @param {string} options
49 * @returns {InternalMinifyResult}
50 */
51export function transform(options: string): InternalMinifyResult;
Note: See TracBrowser for help on using the repository browser.