Interface: DevHelpers
Defined in: windowStateUtils.ts:31
Propertiesβ
getConfigβ
getConfig: () => {
constants: {
DEFAULTS: {
WINDOW: {
height: 800;
minHeight: 600;
minWidth: 800;
width: 1200;
}
}
FILES: {
WINDOW_STATE: "window-state.json";
}
PATHS: {
HTML: {
INDEX: "index.html";
}
ICONS: {
FAVICON: "icons/favicon.ico";
}
PRELOAD: "preload.js";
}
WEB_PREFERENCES: {
contextIsolation: true;
nodeIntegration: false;
sandbox: true;
}
}
currentState: WindowState;
settingsPath: string;
};
Defined in: windowStateUtils.ts:32
Returnsβ
{
constants: {
DEFAULTS: {
WINDOW: {
height: 800;
minHeight: 600;
minWidth: 800;
width: 1200;
}
}
FILES: {
WINDOW_STATE: "window-state.json";
}
PATHS: {
HTML: {
INDEX: "index.html";
}
ICONS: {
FAVICON: "icons/favicon.ico";
}
PRELOAD: "preload.js";
}
WEB_PREFERENCES: {
contextIsolation: true;
nodeIntegration: false;
sandbox: true;
}
}
currentState: WindowState;
settingsPath: string;
}
constantsβ
constants: {
DEFAULTS: {
WINDOW: {
height: 800;
minHeight: 600;
minWidth: 800;
width: 1200;
}
}
FILES: {
WINDOW_STATE: "window-state.json";
}
PATHS: {
HTML: {
INDEX: "index.html";
}
ICONS: {
FAVICON: "icons/favicon.ico";
}
PRELOAD: "preload.js";
}
WEB_PREFERENCES: {
contextIsolation: true;
nodeIntegration: false;
sandbox: true;
}
}
constants.DEFAULTSβ
readonly DEFAULTS: {
WINDOW: {
height: 800;
minHeight: 600;
minWidth: 800;
width: 1200;
};
};
constants.DEFAULTS.WINDOWβ
readonly WINDOW: {
height: 800;
minHeight: 600;
minWidth: 800;
width: 1200;
};
constants.DEFAULTS.WINDOW.heightβ
readonly height: 800 = 800;
constants.DEFAULTS.WINDOW.minHeightβ
readonly minHeight: 600 = 600;
constants.DEFAULTS.WINDOW.minWidthβ
readonly minWidth: 800 = 800;
constants.DEFAULTS.WINDOW.widthβ
readonly width: 1200 = 1200;
constants.FILESβ
readonly FILES: {
WINDOW_STATE: "window-state.json";
};
constants.FILES.WINDOW_STATEβ
readonly WINDOW_STATE: "window-state.json" = "window-state.json";
constants.PATHSβ
readonly PATHS: {
HTML: {
INDEX: "index.html";
};
ICONS: {
FAVICON: "icons/favicon.ico";
};
PRELOAD: "preload.js";
};
constants.PATHS.HTMLβ
readonly HTML: {
INDEX: "index.html";
};
constants.PATHS.HTML.INDEXβ
readonly INDEX: "index.html" = "index.html";
constants.PATHS.ICONSβ
readonly ICONS: {
FAVICON: "icons/favicon.ico";
};
constants.PATHS.ICONS.FAVICONβ
readonly FAVICON: "icons/favicon.ico" = "icons/favicon.ico";
constants.PATHS.PRELOADβ
readonly PRELOAD: "preload.js" = "preload.js";
constants.WEB_PREFERENCESβ
readonly WEB_PREFERENCES: {
contextIsolation: true;
nodeIntegration: false;
sandbox: true;
};
constants.WEB_PREFERENCES.contextIsolationβ
readonly contextIsolation: true = true;
constants.WEB_PREFERENCES.nodeIntegrationβ
readonly nodeIntegration: false = false;
constants.WEB_PREFERENCES.sandboxβ
readonly sandbox: true = true;
currentStateβ
currentState: WindowState;
settingsPathβ
settingsPath: string;
resetStateβ
resetState: () => boolean;
Defined in: windowStateUtils.ts:37
Returnsβ
boolean
validateSettingsβ
validateSettings: () =>
| {
error?: undefined;
exists: boolean;
isValid: boolean;
path: string;
state: WindowState;
}
| {
error: string;
exists: boolean;
isValid: false;
path: string;
state?: undefined;
};
Defined in: windowStateUtils.ts:38
Returnsβ
| {
error?: undefined;
exists: boolean;
isValid: boolean;
path: string;
state: WindowState;
}
| {
error: string;
exists: boolean;
isValid: false;
path: string;
state?: undefined;
}