From 7ccc9a1d53f8ef6a2cb3a340d95229d3b2d9ec77 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Fri, 17 Jan 2025 00:03:29 -0600 Subject: [PATCH] Add tsconfig option: `verbatimModuleSyntax` Fix type-only imports --- src/backends/port/rpc.ts | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backends/port/rpc.ts b/src/backends/port/rpc.ts index f333b1e8..7ae9b158 100644 --- a/src/backends/port/rpc.ts +++ b/src/backends/port/rpc.ts @@ -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 diff --git a/tsconfig.json b/tsconfig.json index e21ef0e9..8f182685 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "lib": ["ESNext"], "moduleResolution": "NodeNext", "declaration": true, - "strict": true + "strict": true, + "verbatimModuleSyntax": true }, "include": ["src/**/*.ts"], "exclude": ["node_modules"],