Skip to content

Commit

Permalink
Add tsconfig option: verbatimModuleSyntax
Browse files Browse the repository at this point in the history
Fix type-only imports
  • Loading branch information
james-pre committed Jan 17, 2025
1 parent b4bc88f commit 7ccc9a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backends/port/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function isFileData(value: unknown): value is FileData {
return typeof value == 'object' && value != null && 'path' in value && 'flag' in value;
}

export { FileData as File };
export type { FileData as File };

// general types

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"lib": ["ESNext"],
"moduleResolution": "NodeNext",
"declaration": true,
"strict": true
"strict": true,
"verbatimModuleSyntax": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"],
Expand Down

0 comments on commit 7ccc9a1

Please sign in to comment.