queue/source/types.d.ts

29 lines
541 B
TypeScript
Raw Normal View History

import {html} from 'htm/preact';
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
2022-03-05 13:10:45 +00:00
interface ImportMeta {
readonly env: ImportMetaEnv;
}
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-05 13:10:45 +00:00
type HtmComponent = ReturnType<typeof html>;
2022-03-05 13:10:45 +00:00
namespace Queue {
type Item = {
added: Date;
id: number;
text: string;
url: string;
};
}
}