2022-03-27 21:21:21 +00:00
|
|
|
declare global {
|
|
|
|
// See Vite documentation for `import.meta.env` usage.
|
|
|
|
// https://vitejs.dev/guide/env-and-mode.html
|
|
|
|
|
|
|
|
interface ImportMeta {
|
|
|
|
readonly env: ImportMetaEnv;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ImportMetaEnv {
|
|
|
|
readonly BASE_URL: string;
|
|
|
|
readonly DEV: boolean;
|
|
|
|
readonly MODE: string;
|
|
|
|
readonly PROD: boolean;
|
2024-01-17 11:13:01 +00:00
|
|
|
readonly VITE_BROWSER: "chromium" | "firefox";
|
2022-03-27 21:21:21 +00:00
|
|
|
}
|
2022-11-22 13:17:30 +00:00
|
|
|
|
|
|
|
interface Window {
|
2024-01-17 11:13:01 +00:00
|
|
|
"Re-Nav": {
|
2022-11-22 13:17:30 +00:00
|
|
|
decodeBase64<T>(base64: string): T;
|
|
|
|
encodeBase64(source: any): string;
|
|
|
|
share(redirect: Redirect): string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
type Redirect = {
|
|
|
|
matcherType: string;
|
|
|
|
matcherValue: string;
|
|
|
|
redirectType: string;
|
|
|
|
redirectValue: string;
|
|
|
|
};
|
2022-03-27 21:21:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Make TypeScript see this file as a module.
|
|
|
|
export {};
|