refactor: Port content-scripts-injector to TypeScript (#17012)

This commit is contained in:
Felix Rieseberg 2019-02-18 12:47:07 +00:00 committed by Samuel Attard
parent 35c3a7e130
commit eaa0e28396
4 changed files with 46 additions and 13 deletions

View file

@ -26,6 +26,13 @@ declare namespace NodeJS {
atomBinding(name: 'command_line'): Electron.CommandLine;
log: NodeJS.WriteStream['write'];
activateUvLoop(): void;
// Additional methods
getRenderProcessPreferences(): Array<Electron.RendererProcessPreference> | null;
// Additional events
once(event: 'document-start', listener: () => any): this;
once(event: 'document-end', listener: () => any): this;
}
}