Skip to content

Commit 8bbbf8c

Browse files
committed
Fix exports in type definitions
Since the code uses "module.exports = ...", the TypeScript types should use "export = ..." to match. This ensures it works when neither esModuleInterop nor allowSyntheticDefaultImports are enabled. For more context, see https://github.com/DefinitelyTyped/DefinitelyTyped#a-package-uses-export--but-i-prefer-to-use-default-imports-can-i-change-export--to-export-default
1 parent 6f3ae38 commit 8bbbf8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ declare module '@isomorphic-git/lightning-fs' {
287287
mode: number
288288
}
289289
}
290-
export default FS
290+
export = FS
291291
}
292292

293293
declare module '@isomorphic-git/lightning-fs/src/path' {
@@ -299,5 +299,5 @@ declare module '@isomorphic-git/lightning-fs/src/path' {
299299
function dirname(path: string): string
300300
function resolve(...paths: string[]): string
301301
}
302-
export default Path
302+
export = Path
303303
}

0 commit comments

Comments
 (0)