Overnap

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

......@@ -2,5 +2,20 @@ export interface RoomData {
uuid: string;
name: string;
maxUsers: number;
users: string[];
users: User[];
}
export interface User {
username: string;
admin: boolean;
ready: boolean;
}
export interface UpdateRoomUser {
state: "added" | "updated" | "removed";
user: {
username: string;
admin: boolean;
ready: boolean;
};
}
......