Skip to content

Commit

Permalink
fix: support node 14 require function type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Sep 16, 2020
1 parent 3d2a808 commit 27b28b1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base/base_footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ declare module 'electron/renderer' {

interface NodeRequireFunction {
(moduleName: 'electron'): typeof Electron;
(moduleName: 'electron/main'): typeof Electron.Main;
(moduleName: 'electron/common'): typeof Electron.Common;
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
}

interface NodeRequire {
(moduleName: 'electron'): typeof Electron;
(moduleName: 'electron/main'): typeof Electron.Main;
(moduleName: 'electron/common'): typeof Electron.Common;
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
}

interface File {
Expand Down

0 comments on commit 27b28b1

Please sign in to comment.