Files
cozsweet-frontend-nextjs/src/stores/user/user-events.ts
T

12 lines
268 B
TypeScript

/**
* User 状态机:事件联合
*/
import type { UserView } from "@/data/dto/user";
export type UserEvent =
| { type: "UserInit" }
| { type: "UserFetch" }
| { type: "UserUpdate"; user: UserView }
| { type: "UserClearLocal" }
| { type: "UserLogout" };