revite/src/globals.d.ts

27 lines
524 B
TypeScript
Raw Normal View History

2021-07-31 22:39:15 +01:00
type Build = "stable" | "nightly" | "dev";
type NativeConfig = {
frame: boolean;
build: Build;
};
declare interface Window {
isNative?: boolean;
2021-08-01 14:22:08 +01:00
nativeVersion: string;
2021-07-31 22:39:15 +01:00
native: {
2021-08-01 14:22:08 +01:00
min();
max();
2021-07-31 22:39:15 +01:00
close();
reload();
2021-08-01 14:22:08 +01:00
relaunch();
2021-07-31 22:39:15 +01:00
getConfig(): NativeConfig;
setFrame(frame: boolean);
setBuild(build: Build);
2021-08-01 14:22:08 +01:00
getAutoStart(): Promise<boolean>;
enableAutoStart(): Promise<void>;
disableAutoStart(): Promise<void>;
2021-07-31 22:39:15 +01:00
};
}