Overnap

Room 컴포넌트를 위한 타입 작성

...@@ -2,5 +2,20 @@ export interface RoomData { ...@@ -2,5 +2,20 @@ export interface RoomData {
2 uuid: string; 2 uuid: string;
3 name: string; 3 name: string;
4 maxUsers: number; 4 maxUsers: number;
5 - users: string[]; 5 + users: User[];
6 +}
7 +
8 +export interface User {
9 + username: string;
10 + admin: boolean;
11 + ready: boolean;
12 +}
13 +
14 +export interface UpdateRoomUser {
15 + state: "added" | "updated" | "removed";
16 + user: {
17 + username: string;
18 + admin: boolean;
19 + ready: boolean;
20 + };
6 } 21 }
......