-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.d.ts
50 lines (43 loc) · 1.28 KB
/
env.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
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vue" />
/// <reference types="vite-plugin-pwa/client" />
/// <reference types="vite-plugin-pwa/info" />
/// <reference lib="webworker" />
import type { SetupWorker } from 'msw'
import type DarkModeSwitch from './src/lib/wc/dark-mode-switch.ce.vue'
import type MyCounter from './src/lib/wc/my-counter.ce.vue'
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string // prefixed with "VITE_" -> exposed to our Vite-processed code
readonly VITE_API_BASE_URL: string // this WON'T be exposed to Vite-processed code
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare global {
interface Window {
msw: {
worker: SetupWorker
}
/**
* Toggle react query devtools in production
*/
toggleRqDevtools: () => void
}
}
declare module 'vue' {
export interface GlobalComponents {
'my-counter': typeof MyCounter
'dark-mode-switch': typeof DarkModeSwitch
}
// export interface ComponentCustomProperties {
// vRipple: RippleOptions
// vStyleclass: StyleClassOptions
// }
}
// declare module '@vue/runtime-core' {
// export interface ComponentCustomProperties {
// vRipple: RippleOptions
// vRipple: typeof Ripple
// vStyleclass: StyleClassOptions
// }
// }