From 4cbe33c32f244e9c568d388f19c0f297bf3d74f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Sun, 20 Oct 2024 12:41:09 +0300 Subject: [PATCH] fix(wasm-typescript): Fix option types of functions (#9662) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description:** The types for the wasm-typescript functions are incorrect due to a typo. Without this fix: ``` Property 'TransformConfig' is missing in type '{ module: true; filename: any; sourceMap: • true; mode: "transform"; transform: { verbatimModuleSyntax: boolean; nativeClassProperties: boolean; importNotUsedAsValues: string; importExportAssignConfig: string; }; }' but required in type 'Options'. [2345] ``` --- crates/swc_fast_ts_strip/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_fast_ts_strip/src/lib.rs b/crates/swc_fast_ts_strip/src/lib.rs index 3ac51046b9b4..710595d94ada 100644 --- a/crates/swc_fast_ts_strip/src/lib.rs +++ b/crates/swc_fast_ts_strip/src/lib.rs @@ -64,7 +64,7 @@ interface Options { module?: boolean; filename?: string; mode?: Mode; - transform?; TransformConfig; + transform?: TransformConfig; sourceMap?: boolean; }