-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathenv.d.ts
40 lines (35 loc) · 1.1 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
/// <reference types="vite/client" />
interface ImportMetaEnv {
// Auto generate by env parse
VITE_APP_SHOULD_CATCH_DATA: boolean
VITE_APP_VISUALIZER_ENABLE: boolean
}
declare module '*.json' {
type json = string
export default json
}
declare module 'splitpanes' {
import { Component } from 'vue'
export const Splitpanes: Component
export const Pane: Component
}
declare module 'https://json.schemastore.org/tsconfig' {
export const tsconfig: string
}
declare module 'https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.min.js' {
export * from '@types/canvas-confetti'
}
// i18n translate key
declare module '@intlify/core-base' {
import I18nStore from '@i18n/modules/zh.json'
export type PickupPathKey<
T extends Record<string, any>,
K extends string | null = null,
M = keyof T
> = M extends string ? PickupPathKey<T[M], K extends string ? `${K}.${M}` : M> : K
type keys = PickupPathKey<typeof I18nStore>
export declare type Path = keys
export declare type ResourceKeys = keys
export declare type DefineLocaleMessage = typeof I18nStore
}
interface Window {}