mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2025-10-13 21:50:26 +00:00
feat 多商户适配中
This commit is contained in:
74
types/global.d.ts
vendored
74
types/global.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
import type {
|
||||
VNodeChild,
|
||||
ComponentPublicInstance,
|
||||
FunctionalComponent,
|
||||
VNodeChild,
|
||||
PropType as VuePropType,
|
||||
} from 'vue';
|
||||
} from 'vue'
|
||||
|
||||
// declare global 在具有 import 或 export 声明全局范围内的事物的文件中使用。
|
||||
// 这在包含 import 或 export 因为此类文件被视为模块的文件中是必需的,并且在模块中声明的任何内容都在模块范围内。
|
||||
@@ -12,64 +12,64 @@ import type {
|
||||
declare global {
|
||||
const __APP_INFO__: {
|
||||
pkg: {
|
||||
name: string;
|
||||
version: string;
|
||||
dependencies: Recordable<string>;
|
||||
devDependencies: Recordable<string>;
|
||||
};
|
||||
lastBuildTime: string;
|
||||
};
|
||||
name: string
|
||||
version: string
|
||||
dependencies: Recordable<string>
|
||||
devDependencies: Recordable<string>
|
||||
}
|
||||
lastBuildTime: string
|
||||
}
|
||||
|
||||
// vue
|
||||
type PropType<T> = VuePropType<T>;
|
||||
type VueNode = VNodeChild | JSX.Element;
|
||||
type PropType<T> = VuePropType<T>
|
||||
type VueNode = VNodeChild | JSX.Element
|
||||
|
||||
export type Writable<T> = {
|
||||
-readonly [P in keyof T]: T[P];
|
||||
};
|
||||
}
|
||||
|
||||
type Nullable<T> = T | null;
|
||||
type NonNullable<T> = T extends null | undefined ? never : T;
|
||||
type Recordable<T = any> = Record<string, T>;
|
||||
type ReadonlyRecordable<T = any> = {
|
||||
readonly [key: string]: T;
|
||||
};
|
||||
type Indexable<T = any> = {
|
||||
[key: string]: T;
|
||||
};
|
||||
type Nullable<T> = T | null
|
||||
type NonNullable<T> = T extends null | undefined ? never : T
|
||||
type Recordable<T = any> = Record<string, T>
|
||||
interface ReadonlyRecordable<T = any> {
|
||||
readonly [key: string]: T
|
||||
}
|
||||
interface Indexable<T = any> {
|
||||
[key: string]: T
|
||||
}
|
||||
type DeepPartial<T> = {
|
||||
[P in keyof T]?: DeepPartial<T[P]>;
|
||||
};
|
||||
type TimeoutHandle = ReturnType<typeof setTimeout>;
|
||||
type IntervalHandle = ReturnType<typeof setInterval>;
|
||||
}
|
||||
type TimeoutHandle = ReturnType<typeof setTimeout>
|
||||
type IntervalHandle = ReturnType<typeof setInterval>
|
||||
|
||||
interface ChangeEvent extends Event {
|
||||
target: HTMLInputElement;
|
||||
target: HTMLInputElement
|
||||
}
|
||||
|
||||
interface WheelEvent {
|
||||
path?: EventTarget[];
|
||||
path?: EventTarget[]
|
||||
}
|
||||
|
||||
interface ImportMetaEnv extends ViteEnv {
|
||||
__: unknown;
|
||||
__: unknown
|
||||
}
|
||||
|
||||
interface ViteEnv {
|
||||
VITE_PORT: number;
|
||||
VITE_PUBLIC_PATH: string;
|
||||
VITE_GLOB_APP_TITLE: string;
|
||||
VITE_GLOB_APP_SHORT_NAME: string;
|
||||
VITE_DROP_CONSOLE: boolean;
|
||||
VITE_GLOB_IMG_URL: string;
|
||||
VITE_PROXY: [string, string][];
|
||||
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
|
||||
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
|
||||
VITE_PORT: number
|
||||
VITE_PUBLIC_PATH: string
|
||||
VITE_GLOB_APP_TITLE: string
|
||||
VITE_GLOB_APP_SHORT_NAME: string
|
||||
VITE_DROP_CONSOLE: boolean
|
||||
VITE_GLOB_IMG_URL: string
|
||||
VITE_PROXY: [string, string][]
|
||||
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
|
||||
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue' {
|
||||
export type JSXComponent<Props = any> =
|
||||
| { new (): ComponentPublicInstance<Props> }
|
||||
| FunctionalComponent<Props>;
|
||||
| FunctionalComponent<Props>
|
||||
}
|
||||
|
Reference in New Issue
Block a user