-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.d.ts
51 lines (42 loc) · 1.08 KB
/
globals.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
40
41
42
43
44
45
46
47
48
49
50
51
/// <reference types="urlpattern-polyfill" />
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/client" />
interface ImportMetaEnv {
/** The app mode. Can be either `development` or `production`. */
readonly MODE: 'development' | 'production';
readonly PROD: boolean;
readonly DEV: boolean;
}
interface ImportMeta {
hot: {
accept: Function,
dispose: Function
};
readonly env: ImportMetaEnv;
resolve(string): string;
}
const JSZip: typeof import('jszip');
interface FilePickerOptions {
id: string;
startIn: 'devices' | 'documents' | 'downloads' | 'home' | 'music' | 'pictures' | 'recent' | 'removable' | 'unknown' | 'videos';
}
interface Gamepad {
vibrationActuator?: {
playEffect(type: 'dual-rumble', options: {
startDelay: number,
duration: number,
weakMagnitude: number,
strongMagnitude: number
}): void
};
}
interface LaunchParams {
readonly files: FileSystemHandle[];
readonly targetURL: string;
}
interface LaunchQueue {
setConsumer(consumer: (params: LaunchParams) => unknown): void;
}
interface Window {
launchQueue: LaunchQueue;
}