Skip to content

Commit

Permalink
fix(types): update typescript type for options.envs to match implem…
Browse files Browse the repository at this point in the history
…entation
  • Loading branch information
davidmurdoch committed Feb 7, 2024
1 parent e40a08a commit 86bca33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/binding_core_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ export interface GlobalPassOption {
*
* Defaults to `["NODE_ENV", "SWC_ENV"]`
*/
envs?: string[];
envs?: string[] | Record<string, string>;
}
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;
Expand Down
2 changes: 1 addition & 1 deletion bindings/binding_minifier_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ export interface GlobalPassOption {
*
* Defaults to `["NODE_ENV", "SWC_ENV"]`
*/
envs?: string[];
envs?: string[] | Record<string, string>;
}
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;
Expand Down
2 changes: 1 addition & 1 deletion packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ export interface GlobalPassOption {
*
* Defaults to `["NODE_ENV", "SWC_ENV"]`
*/
envs?: string[];
envs?: string[] | Record<string, string>;

/**
* Replaces typeof calls for passed variables with corresponding value
Expand Down

0 comments on commit 86bca33

Please sign in to comment.