Add new native options.

This commit is contained in:
Paul
2021-08-03 20:04:46 +01:00
parent f4b04635de
commit 4c4477e79e
2 changed files with 35 additions and 6 deletions

5
src/globals.d.ts vendored
View File

@@ -3,6 +3,8 @@ type Build = "stable" | "nightly" | "dev";
type NativeConfig = {
frame: boolean;
build: Build;
discordRPC: boolean;
hardwareAcceleration: boolean;
};
declare interface Window {
@@ -16,8 +18,7 @@ declare interface Window {
relaunch();
getConfig(): NativeConfig;
setFrame(frame: boolean);
setBuild(build: Build);
set(key: keyof NativeConfig, value: any);
getAutoStart(): Promise<boolean>;
enableAutoStart(): Promise<void>;