first commit
This commit is contained in:
Vendored
+22
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface UserState {
|
||||
token: string
|
||||
userInfo: { name?: string; phone?: string }
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
interface User {
|
||||
token: string;
|
||||
avatar: string; // 头像
|
||||
mobile:string; // 手机号
|
||||
account:string; // 用户名
|
||||
id:number; // 用户id
|
||||
}
|
||||
Reference in New Issue
Block a user