Skip to content

Commit 2a115cf

Browse files
authoredFeb 7, 2024
fix(binding/types): Update typings for options.envs to match implementation (#8620)
1 parent e40a08a commit 2a115cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎bindings/binding_core_wasm/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ export interface GlobalPassOption {
905905
*
906906
* Defaults to `["NODE_ENV", "SWC_ENV"]`
907907
*/
908-
envs?: string[];
908+
envs?: string[] | Record<string, string>;
909909
}
910910
911911
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;

‎bindings/binding_minifier_wasm/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ export interface GlobalPassOption {
905905
*
906906
* Defaults to `["NODE_ENV", "SWC_ENV"]`
907907
*/
908-
envs?: string[];
908+
envs?: string[] | Record<string, string>;
909909
}
910910
911911
export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;

‎packages/types/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ export interface GlobalPassOption {
872872
*
873873
* Defaults to `["NODE_ENV", "SWC_ENV"]`
874874
*/
875-
envs?: string[];
875+
envs?: string[] | Record<string, string>;
876876

877877
/**
878878
* Replaces typeof calls for passed variables with corresponding value

0 commit comments

Comments
 (0)