Skip to content

Commit 275007e

Browse files
fix: ensure original-fs is exported correctly (#235)
1 parent 74cfe73 commit 275007e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

base/base_footer.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ declare module 'electron' {
33
}
44

55
declare module 'electron/main' {
6-
export = Electron.Main
6+
export = Electron.Main;
77
}
88

99
declare module 'electron/common' {
10-
export = Electron.Common
10+
export = Electron.Common;
1111
}
1212

1313
declare module 'electron/renderer' {
14-
export = Electron.Renderer
14+
export = Electron.Renderer;
1515
}
1616

1717
interface NodeRequireFunction {
@@ -29,9 +29,9 @@ interface NodeRequire {
2929
}
3030

3131
interface File {
32-
/**
33-
* The real path to the file on the users filesystem
34-
*/
32+
/**
33+
* The real path to the file on the users filesystem
34+
*/
3535
path: string;
3636
}
3737

@@ -41,9 +41,10 @@ declare module 'original-fs' {
4141
}
4242

4343
declare module 'node:original-fs' {
44-
export * from 'original-fs';
44+
import * as fs from 'fs';
45+
export = fs;
4546
}
4647

4748
interface Document {
4849
createElement(tagName: 'webview'): Electron.WebviewTag;
49-
}
50+
}

0 commit comments

Comments
 (0)