-
Notifications
You must be signed in to change notification settings - Fork 1
/
.d.ts
39 lines (36 loc) · 767 Bytes
/
.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { type Options } from "@emotion/cache";
interface CustomEnv {
NODE_ENV: "development" | "production";
VITE_HA_URL: string;
VITE_FOLDER_NAME: string;
VITE_SSH_USERNAME: string;
VITE_SSH_PASSWORD: string;
VITE_SSH_HOSTNAME: string;
VITE_HA_TOKEN: string;
[key: string]: unknown;
}
declare module "*.jpg" {
const value: string;
export default value;
}
declare module "*.mp4" {
const value: string;
export default value;
}
declare module "*.png" {
const value: string;
export default value;
}
// For Vite's import.meta.env
interface ImportMeta {
env: CustomEnv;
}
// For Node's process.env
declare global {
namespace NodeJS {
interface ProcessEnv extends CustomEnv {}
}
interface Window {
hakit_cache: Options;
}
}