Skip to content

Commit b0c8eeb

Browse files
author
Tajudeen
committed
fix: resolve TypeScript export conflict for Change type
- Separate value export (diffLines) from type export (Change) - Use 'export type' for Change to avoid declaration conflict - Fixes compilation error: Export declaration conflicts with exported declaration of 'Change' The issue was that tsup was generating both an interface declaration and a type export for Change, causing a TypeScript compilation error.
1 parent 8317501 commit b0c8eeb

File tree

1 file changed

+2
-1
lines changed
  • src/vs/workbench/contrib/cortexide/browser/react/src/diff

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/cortexide/browser/react/src/diff/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
import { diffLines, Change } from 'diff';
77

8-
export { diffLines, Change }
8+
export { diffLines };
9+
export type { Change };

0 commit comments

Comments
 (0)