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