Skip to content

Commit

Permalink
fix(es/types): Add transform.verbatimModuleSyntax (#10079)
Browse files Browse the repository at this point in the history
**Description:**

Add TypeScript definition for `transform.verbatimModuleSyntax`.

**Related issue:** 

 - Closes #10078
  • Loading branch information
colinaaa authored Feb 23, 2025
1 parent f33b0bc commit a883cdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,15 @@ export interface TransformConfig {

treatConstEnumAsEnum?: boolean;

/**
* https://www.typescriptlang.org/tsconfig#useDefineForClassFields
*/
useDefineForClassFields?: boolean;

/**
* https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
*/
verbatimModuleSyntax?: boolean;
}

export interface ReactConfig {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swc/types",
"packageManager": "yarn@4.0.2",
"version": "0.1.17",
"version": "0.1.18",
"description": "Typings for the swc project.",
"sideEffects": false,
"scripts": {
Expand Down

0 comments on commit a883cdc

Please sign in to comment.