Improved native options.

This commit is contained in:
Paul
2021-08-01 14:22:08 +01:00
parent 63d2d1b760
commit 31636d569c
6 changed files with 292 additions and 75 deletions

8
src/globals.d.ts vendored
View File

@@ -7,12 +7,20 @@ type NativeConfig = {
declare interface Window {
isNative?: boolean;
nativeVersion: string;
native: {
min();
max();
close();
reload();
relaunch();
getConfig(): NativeConfig;
setFrame(frame: boolean);
setBuild(build: Build);
getAutoStart(): Promise<boolean>;
enableAutoStart(): Promise<void>;
disableAutoStart(): Promise<void>;
};
}