2022-10-05 11:09:52 +00:00
|
|
|
import {html} from 'htm/preact';
|
|
|
|
|
|
|
|
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;
|
|
|
|
readonly VITE_BROWSER: 'chromium' | 'firefox';
|
|
|
|
}
|
|
|
|
|
2022-10-27 13:48:34 +00:00
|
|
|
interface Window {
|
|
|
|
Holllo: {
|
|
|
|
insertExamples(): Promise<void>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-10-05 11:09:52 +00:00
|
|
|
type HtmComponent = ReturnType<typeof html>;
|
|
|
|
}
|