init
This commit is contained in:
27
types/global.d.ts
vendored
Normal file
27
types/global.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { VNodeChild } from 'vue';
|
||||
|
||||
declare global {
|
||||
// vue
|
||||
declare type VueNode = VNodeChild | JSX.Element;
|
||||
|
||||
declare type TimeoutHandle = ReturnType<typeof setTimeout>;
|
||||
declare type IntervalHandle = ReturnType<typeof setInterval>;
|
||||
|
||||
interface ImportMetaEnv extends ViteEnv {
|
||||
__: unknown;
|
||||
}
|
||||
|
||||
declare interface ViteEnv {
|
||||
VITE_APP_TITLE?: string;
|
||||
VITE_APP_BASE_API: string;
|
||||
VITE_DROP_CONSOLE: Boolean;
|
||||
}
|
||||
|
||||
declare function parseInt(s: string | number, radix?: number): number;
|
||||
|
||||
declare function parseFloat(string: string | number): number;
|
||||
|
||||
declare interface Uni {
|
||||
$u: any
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user