refactor: unify module-list format and exports/electron (#19697)
This commit is contained in:
parent
c6a8b7f959
commit
7825d043f2
18 changed files with 108 additions and 162 deletions
8
typings/internal-electron.d.ts
vendored
8
typings/internal-electron.d.ts
vendored
|
@ -130,6 +130,14 @@ declare namespace ElectronInternal {
|
|||
once(channel: string, listener: (event: IpcMainInternalEvent, ...args: any[]) => void): this;
|
||||
}
|
||||
|
||||
type ModuleLoader = () => any;
|
||||
|
||||
interface ModuleEntry {
|
||||
name: string;
|
||||
private?: boolean;
|
||||
loader: ModuleLoader;
|
||||
}
|
||||
|
||||
interface WebFrameInternal extends Electron.WebFrame {
|
||||
getWebFrameId(window: Window): number;
|
||||
allowGuestViewElementDefinition(window: Window, context: any): void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue