File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ export const generatePrimaryInterfaces = (
9
9
addToOutput : ( lines : string [ ] , sep ?: string ) => void ,
10
10
) => {
11
11
// Generate Main / Renderer process interfaces
12
- const CommonNamespace = [ 'namespace Common {' ] ;
13
- const MainNamespace = [ 'namespace Main {' ] ;
14
- const RendererNamespace = [ 'namespace Renderer {' ] ;
12
+ const eventExport =
13
+ ' type Event<Params extends object, Sender extends NodeJS.EventEmitter> = Electron.Event<Params, Sender>' ;
14
+ const CommonNamespace = [ 'namespace Common {' , eventExport ] ;
15
+ const MainNamespace = [ 'namespace Main {' , eventExport ] ;
16
+ const RendererNamespace = [ 'namespace Renderer {' , eventExport ] ;
15
17
const MainInterfaceForRemote = [ 'interface RemoteMainInterface {' ] ;
16
- const CrossProcessExportsNamespace = [ 'namespace CrossProcessExports {' ] ;
18
+ const CrossProcessExportsNamespace = [ 'namespace CrossProcessExports {' , eventExport ] ;
17
19
const constDeclarations : string [ ] = [ ] ;
18
20
const EMRI : Record < string , boolean > = { } ;
19
21
You can’t perform that action at this time.
0 commit comments