Skip to content

Commit

Permalink
fix: use TerserECMA type to fix type mismatch (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-blt committed Feb 1, 2022
1 parent 0aa01f9 commit 68920cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -86,7 +86,7 @@ const { minify } = require("./minify");
/**
* @typedef {Object} PredefinedOptions
* @property {boolean} [module]
* @property {any} [ecma]
* @property {TerserECMA} [ecma]
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Expand Up @@ -55,7 +55,7 @@ export = TerserPlugin;
/**
* @typedef {Object} PredefinedOptions
* @property {boolean} [module]
* @property {any} [ecma]
* @property {TerserECMA} [ecma]
*/
/**
* @template T
Expand Down Expand Up @@ -290,7 +290,7 @@ type CustomOptions = {
type InferDefaultType<T> = T extends infer U ? U : CustomOptions;
type PredefinedOptions = {
module?: boolean | undefined;
ecma?: any;
ecma?: import("terser").ECMA | undefined;
};
type MinimizerOptions<T> = PredefinedOptions & InferDefaultType<T>;
type BasicMinimizerImplementation<T> = (
Expand Down

0 comments on commit 68920cd

Please sign in to comment.