forked from abner/for-legacy-web
Add new native options.
This commit is contained in:
5
src/globals.d.ts
vendored
5
src/globals.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user