queue/source/types.d.ts

33 lines
663 B
TypeScript
Raw Normal View History

2022-09-27 10:49:00 +00:00
import type {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;
readonly VITE_BROWSER: 'chromium' | 'firefox';
2022-03-05 13:10:45 +00:00
}
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;
2022-10-25 10:04:11 +00:00
sortIndex: number;
2022-03-05 13:10:45 +00:00
text: string;
url: string;
};
type MoveDirection = 'up' | 'down';
2022-03-05 13:10:45 +00:00
}
}