forked from abner/for-legacy-web
Fix message links from search.
This commit is contained in:
18
src/globals.d.ts
vendored
Normal file
18
src/globals.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user