revite/src/globals.d.ts

19 lines
319 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;
native: {
close();
reload();
getConfig(): NativeConfig;
setFrame(frame: boolean);
setBuild(build: Build);
};
}