File tree 3 files changed +18
-2
lines changed
bindings/binding_typescript_wasm/src
crates/swc_fast_ts_strip/src
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ swc_fast_ts_strip : patch
3
+ swc_core : patch
4
+ ---
5
+
6
+ fix(es/typescript): Update ts-strip type definition
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ use wasm_bindgen_futures::{
12
12
/// auto generated one, which is not reflecting most of types in detail.
13
13
#[ wasm_bindgen( typescript_custom_section) ]
14
14
const INTERFACE_DEFINITIONS : & ' static str = r#"
15
- export function transform(src: string, opts?: Options): Promise<TransformOutput>;
16
- export function transformSync(src: string, opts?: Options): TransformOutput;
15
+ export declare function transform(src: string, opts?: Options): Promise<TransformOutput>;
16
+ export declare function transformSync(src: string, opts?: Options): TransformOutput;
17
+ export type { Options, TransformOutput };
17
18
"# ;
18
19
19
20
#[ wasm_bindgen( skip_typescript) ]
Original file line number Diff line number Diff line change @@ -64,8 +64,17 @@ interface Options {
64
64
module?: boolean;
65
65
filename?: string;
66
66
mode?: Mode;
67
+ transform?; TransformConfig;
67
68
sourceMap?: boolean;
68
69
}
70
+
71
+ interface TransformConfig {
72
+ verbatimModuleSyntax?: boolean;
73
+ importNotUsedAsValues?: "remove" | "preserve";
74
+ noEmptyExport?: boolean;
75
+ importExportAssignConfig?: "Classic" | "Preserve" | "NodeNext" | "EsNext";
76
+ tsEnumIsMutable?: boolean;
77
+ }
69
78
"# ;
70
79
71
80
#[ derive( Debug , Default , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments