type ProjectId = number; export interface RootState { token: TokenState; user: UserState; workspace: WorkspaceState; } export interface TokenState { token: string; } export interface UserState { email: string; id: number; phone: string; role: Role; username: string; withGitlab: boolean; } export interface WorkspaceState { currentProjectId: ProjectId; projectList: Array; } export interface ChangeProjectPayload { projectId: ProjectId; } export interface TokenPayload { token: string; }