WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/terser-webpack-plugin/types/utils.d.ts
@@ -11,7 +11,7 @@
export type CustomOptions = import("./index.js").CustomOptions;
export type RawSourceMap = import("./index.js").RawSourceMap;
export type PredefinedOptions<T> = import("./index.js").PredefinedOptions<T>;
export type ExtractedComments = Array<string>;
export type ExtractedComments = string[];
/**
 * @param {Input} input input
 * @param {RawSourceMap=} sourceMap source map
@@ -34,6 +34,22 @@
  function supportsWorkerThreads(): boolean | undefined;
}
/**
 * @param {Input} input input
 * @param {RawSourceMap=} sourceMap source map
 * @param {CustomOptions=} minimizerOptions options
 * @returns {Promise<MinimizedResult>} minimized result
 */
export function jsonMinify(
  input: Input,
  sourceMap?: RawSourceMap | undefined,
  minimizerOptions?: CustomOptions | undefined,
): Promise<MinimizedResult>;
export namespace jsonMinify {
  function getMinimizerVersion(): string;
  function supportsWorker(): boolean;
  function supportsWorkerThreads(): boolean;
}
/**
 * @template T
 * @typedef {() => T} FunctionReturning
 */