2021-09-01 10:46:29 +00:00
|
|
|
import {html} from 'htm/preact';
|
2020-11-26 17:31:13 +00:00
|
|
|
|
|
|
|
declare global {
|
2022-03-05 13:10:45 +00:00
|
|
|
// See Vite documentation for `import.meta.env` usage.
|
|
|
|
// https://vitejs.dev/guide/env-and-mode.html
|
2021-09-01 10:46:29 +00:00
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
interface ImportMeta {
|
|
|
|
readonly env: ImportMetaEnv;
|
|
|
|
}
|
2021-09-01 10:46:29 +00:00
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
interface ImportMetaEnv {
|
|
|
|
readonly BASE_URL: string;
|
|
|
|
readonly DEV: boolean;
|
|
|
|
readonly MODE: string;
|
|
|
|
readonly PROD: boolean;
|
2022-03-20 18:02:37 +00:00
|
|
|
readonly VITE_BROWSER: 'chromium' | 'firefox';
|
2022-03-05 13:10:45 +00:00
|
|
|
}
|
2021-09-01 10:46:29 +00:00
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
type HtmComponent = ReturnType<typeof html>;
|
2021-09-01 10:46:29 +00:00
|
|
|
|
2022-03-05 13:10:45 +00:00
|
|
|
namespace Queue {
|
|
|
|
type Item = {
|
|
|
|
added: Date;
|
|
|
|
id: number;
|
|
|
|
text: string;
|
|
|
|
url: string;
|
|
|
|
};
|
|
|
|
}
|
2021-09-01 10:46:29 +00:00
|
|
|
}
|