fix(bindings): Fix type definitions (#6018)

This commit is contained in:
RiESAEX 2022-10-02 18:24:09 +08:00 committed by GitHub
parent 185d6fe982
commit 8fea8ca3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,11 +350,11 @@ export interface TerserCompressOptions {
export interface TerserMangleOptions {
props?: TerserManglePropertiesOptions,
top_level?: boolean,
toplevel?: boolean,
keep_class_names?: boolean,
keep_classnames?: boolean,
keep_fn_names?: boolean,
keep_fnames?: boolean,
keep_private_props?: boolean,
@ -893,7 +893,7 @@ export interface GlobalPassOption {
envs?: string[];
}
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig;
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;
export interface BaseModuleConfig {
/**
@ -1054,6 +1054,8 @@ export interface BaseModuleConfig {
* If set to true, dynamic imports will be preserved.
*/
ignoreDynamic?: boolean;
allowTopLevelThis?: boolean;
preserveImportMeta?: boolean;
}
export interface Es6Config extends BaseModuleConfig {
@ -1077,7 +1079,10 @@ export interface AmdConfig extends BaseModuleConfig {
type: "amd";
moduleId?: string;
}
export interface SystemjsConfig {
type: "systemjs";
allowTopLevelThis?: boolean;
}
export interface Output {
/**
* Transformed code