This commit is contained in:
2024-02-02 22:31:01 +08:00
parent 06a5f041bf
commit 486ea5013a
77 changed files with 17507 additions and 122 deletions

27
types/global.d.ts vendored Normal file
View 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
}
}