Skip to content

Commit 13ac2f8

Browse files
feat: expose electron/* modules and their interface types
1 parent b0036e8 commit 13ac2f8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

base/base_footer.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@ declare module 'electron' {
22
export = Electron;
33
}
44

5+
declare module 'electron/browser' {
6+
const api: Electron.MainInterface
7+
export = api
8+
}
9+
10+
declare module 'electron/common' {
11+
const api: Electron.CommonInterface
12+
export = api
13+
}
14+
15+
declare module 'electron/renderer' {
16+
const api: Electron.RendererInterface
17+
export = api
18+
}
19+
520
interface NodeRequireFunction {
621
(moduleName: 'electron'): typeof Electron;
722
}

0 commit comments

Comments
 (0)