refactor: Port content-scripts-injector to TypeScript (#17012)
This commit is contained in:
parent
35c3a7e130
commit
eaa0e28396
4 changed files with 46 additions and 13 deletions
7
typings/internal-ambient.d.ts
vendored
7
typings/internal-ambient.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue