Skip to content

Commit

Permalink
fix: Member 타입 제거 및 User 로 통합
Browse files Browse the repository at this point in the history
  • Loading branch information
PMtHk committed Nov 25, 2024
1 parent 75c5d9d commit b4676c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
14 changes: 1 addition & 13 deletions apps/client/src/features/project/types.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
import { BaseResponse, Label } from '@/features/types.ts';

export type User = {
id: number;
username: string;
avatar: string;
};

export type Member = Omit<User, 'avatar'> & {
role: string;
};

export type Assignee = User;
import { BaseResponse, Label, User } from '@/features/types.ts';

export type GetMembersResult = BaseResponse<User[]>;

Expand Down
13 changes: 8 additions & 5 deletions apps/client/src/features/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ export interface BaseResponse<T = void> {
result: T extends void ? never : T;
}

export type User = {
id: number;
username: string;
role: string;
avatar?: string; // or imageUrl
};

export type Sprint = {
id: number;
name: string;
Expand All @@ -18,8 +25,4 @@ export type Label = {
color: string;
};

export type Assignee = {
id: number;
username: string;
avatar: string; // or imageUrl
};
export type Assignee = User;

0 comments on commit b4676c1

Please sign in to comment.