update
This commit is contained in:
@@ -7,6 +7,11 @@ export interface RoomItem {
|
||||
owner_id: string
|
||||
max_players: number
|
||||
player_count: number
|
||||
players?: Array<{
|
||||
index: number
|
||||
player_id: string
|
||||
ready: boolean
|
||||
}>
|
||||
status: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
@@ -58,8 +63,8 @@ export async function joinRoom(
|
||||
auth: AuthSession,
|
||||
input: { roomId: string },
|
||||
onAuthUpdated?: (next: AuthSession) => void,
|
||||
): Promise<void> {
|
||||
await authedRequest<Record<string, never> | RoomItem>({
|
||||
): Promise<RoomItem> {
|
||||
return authedRequest<RoomItem>({
|
||||
method: 'POST',
|
||||
path: ROOM_JOIN_PATH,
|
||||
auth,
|
||||
|
||||
Reference in New Issue
Block a user