2022-09-28 17:56:43 +00:00
|
|
|
import type {html} from 'htm/preact';
|
2022-03-14 09:58:47 +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;
|
2022-03-23 13:04:33 +00:00
|
|
|
readonly VITE_BROWSER: 'chromium' | 'firefox';
|
2022-03-14 09:58:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type HtmComponent = ReturnType<typeof html>;
|
|
|
|
}
|