mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
fix(bindings): Fix type definitions (#6018)
This commit is contained in:
parent
185d6fe982
commit
8fea8ca3fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user