-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathenv.d.ts
More file actions
67 lines (59 loc) · 1.91 KB
/
env.d.ts
File metadata and controls
67 lines (59 loc) · 1.91 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/// <reference types="vite/client" />
declare const __APP_VERSION__: string
declare const __APP_COMMIT_HASH__: string
declare const __APP_BUILD_TIMESTAMP__: number
declare const __REPO_URL__: string
declare const __APP_DISPLAY_NAME__: string
declare const __APP_BUILD_CHANNEL__: string | undefined
declare const __APP_IS_BETA__: boolean
declare const __AMLL_CORE_VERSION__: string
declare const __AMLL_VUE_VERSION__: string
interface NavigatorUAData {
platform: string
brands?: { brand: string; version: string }[]
mobile?: boolean
getHighEntropyValues?: (hints: string[]) => Promise<any>
}
interface Navigator {
userAgentData?: NavigatorUAData
}
declare module 'syllabify' {
function split(word: string): string[]
export default split
}
declare module 'save-file' {
function saveFile(blob: Blob, filename: string): Promise<void>
export default saveFile
}
/**
* LaunchQueue provides access to functionality that allows custom launch navigation handling to be implemented in the PWA.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/API/LaunchQueue)
*/
declare var launchQueue: {
/**
* A callback function that handles custom navigation for the PWA.
* @param callback A LaunchParams object instance
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/API/LaunchQueue/setConsumer)
*/
setConsumer: (callback: (launchParams: LaunchParams) => void) => void
}
/**
* The LaunchParams interface of the Launch Handler API is used
* when implementing custom launch navigation handling in a PWA.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/API/LaunchParams)
*/
interface LaunchParams {
readonly files: FileSystemHandle[]
readonly targetURL: string | null
}
interface ImportMetaEnv {
readonly MODE: 'production' | 'development'
readonly BASE_URL: string
readonly PROD: boolean
readonly DEV: boolean
readonly SSR: boolean
readonly VITE_BUILD_CHANNEL: 'STABLE' | 'BETA' | undefined
}