refactor: cleanup global variable declarations (#38410)
refactor: eliminate duplicate isolatedApi typing Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
2f8e68f8b3
commit
a043a60b89
3 changed files with 9 additions and 13 deletions
|
@ -1,10 +1,15 @@
|
|||
/* global binding */
|
||||
import * as events from 'events';
|
||||
import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages';
|
||||
|
||||
import type * as ipcRendererUtilsModule from '@electron/internal/renderer/ipc-renderer-internal-utils';
|
||||
import type * as ipcRendererInternalModule from '@electron/internal/renderer/ipc-renderer-internal';
|
||||
|
||||
declare const binding: {
|
||||
get: (name: string) => any;
|
||||
process: NodeJS.Process;
|
||||
createPreloadScript: (src: string) => Function
|
||||
};
|
||||
|
||||
const { EventEmitter } = events;
|
||||
|
||||
process._linkedBinding = binding.get;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue