Skip to content

Commit 68920cd

Browse files
authored
fix: use TerserECMA type to fix type mismatch (#471)
1 parent 0aa01f9 commit 68920cd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const { minify } = require("./minify");
8686
/**
8787
* @typedef {Object} PredefinedOptions
8888
* @property {boolean} [module]
89-
* @property {any} [ecma]
89+
* @property {TerserECMA} [ecma]
9090
*/
9191

9292
/**

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export = TerserPlugin;
5555
/**
5656
* @typedef {Object} PredefinedOptions
5757
* @property {boolean} [module]
58-
* @property {any} [ecma]
58+
* @property {TerserECMA} [ecma]
5959
*/
6060
/**
6161
* @template T
@@ -290,7 +290,7 @@ type CustomOptions = {
290290
type InferDefaultType<T> = T extends infer U ? U : CustomOptions;
291291
type PredefinedOptions = {
292292
module?: boolean | undefined;
293-
ecma?: any;
293+
ecma?: import("terser").ECMA | undefined;
294294
};
295295
type MinimizerOptions<T> = PredefinedOptions & InferDefaultType<T>;
296296
type BasicMinimizerImplementation<T> = (

0 commit comments

Comments
 (0)