5790869a3f
* chore: refactor browser IPC into typescript * chore: refactor app.ts into Typescript * Refactors app.dock into cpp * Removes app.launcher which has not existed for 3 years * Removes 2 deprecated APIs (that have been deprecated for more than one major) * Refactors deprecate.ts as well
30 lines
962 B
TypeScript
30 lines
962 B
TypeScript
declare namespace NodeJS {
|
|
interface FeaturesBinding {
|
|
isDesktopCapturerEnabled(): boolean;
|
|
isOffscreenRenderingEnabled(): boolean;
|
|
isPDFViewerEnabled(): boolean;
|
|
isRunAsNodeEnabled(): boolean;
|
|
isFakeLocationProviderEnabled(): boolean;
|
|
isViewApiEnabled(): boolean;
|
|
isTtsEnabled(): boolean;
|
|
isPrintingEnabled(): boolean;
|
|
}
|
|
|
|
interface V8UtilBinding {
|
|
getHiddenValue<T>(obj: any, key: string): T;
|
|
setHiddenValue<T>(obj: any, key: string, value: T): void;
|
|
}
|
|
interface Process {
|
|
/**
|
|
* DO NOT USE DIRECTLY, USE process.atomBinding
|
|
*/
|
|
binding(name: string): any;
|
|
atomBinding(name: string): any;
|
|
atomBinding(name: 'features'): FeaturesBinding;
|
|
atomBinding(name: 'v8_util'): V8UtilBinding;
|
|
atomBinding(name: 'app'): { app: Electron.App, App: Function };
|
|
atomBinding(name: 'command_line'): Electron.CommandLine;
|
|
log: NodeJS.WriteStream['write'];
|
|
activateUvLoop(): void;
|
|
}
|
|
}
|