refactor: check ELECTRON_ENABLE_LOGGING via native implementation (#25623)
This commit is contained in:
parent
fec1c0b68b
commit
b33f22601e
5 changed files with 59 additions and 1 deletions
8
typings/internal-ambient.d.ts
vendored
8
typings/internal-ambient.d.ts
vendored
|
@ -48,6 +48,13 @@ declare namespace NodeJS {
|
|||
isSameOrigin(left: string, right: string): boolean;
|
||||
}
|
||||
|
||||
interface EnvironmentBinding {
|
||||
getVar(name: string): string | null;
|
||||
hasVar(name: string): boolean;
|
||||
setVar(name: string, value: string): boolean;
|
||||
unSetVar(name: string): boolean;
|
||||
}
|
||||
|
||||
type AsarFileInfo = {
|
||||
size: number;
|
||||
unpacked: boolean;
|
||||
|
@ -137,6 +144,7 @@ declare namespace NodeJS {
|
|||
_linkedBinding(name: 'electron_common_features'): FeaturesBinding;
|
||||
_linkedBinding(name: 'electron_browser_app'): { app: Electron.App, App: Function };
|
||||
_linkedBinding(name: 'electron_common_command_line'): Electron.CommandLine;
|
||||
_linkedBinding(name: 'electron_common_environment'): EnvironmentBinding;
|
||||
_linkedBinding(name: 'electron_browser_desktop_capturer'): {
|
||||
createDesktopCapturer(): ElectronInternal.DesktopCapturer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue