first commit

This commit is contained in:
2025-04-24 11:10:30 +08:00
commit 8444433e5b
134 changed files with 13484 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
type TargetContext = "_self" | "_blank";
type EmitType = (event: string, ...args: any[]) => void;
type AnyFunction<T> = (...args: any[]) => T;
type PropType<T> = VuePropType<T>;
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>;
interface Fn<T = any, R = T> {
(...arg: T[]): R;
}
interface PromiseFn<T = any, R = T> {
(...arg: T[]): Promise<R>;
}
interface ViteEnv {
VITE_USER_NODE_ENV: "development" | "production";
VITE_PUBLIC_PATH: string;
VITE_PORT: number;
}
+4
View File
@@ -0,0 +1,4 @@
export interface UserState {
token: string
userInfo: { name?: string; phone?: string }
}
+7
View File
@@ -0,0 +1,7 @@
interface User {
token: string;
avatar: string; // 头像
mobile:string; // 手机号
account:string; // 用户名
id:number; // 用户id
}