Skip to content

Commit

Permalink
fix(wasm-typescript): Fix option types of functions (#9662)
Browse files Browse the repository at this point in the history
**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]  
```
  • Loading branch information
bennypowers authored Oct 20, 2024
1 parent 32116a0 commit 4cbe33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_fast_ts_strip/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface Options {
module?: boolean;
filename?: string;
mode?: Mode;
transform?; TransformConfig;
transform?: TransformConfig;
sourceMap?: boolean;
}
Expand Down

0 comments on commit 4cbe33c

Please sign in to comment.