Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-05 22:36:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d61cf40162323695c1bc4bea3061bbe6bae9b5f3
d61cf401
1 parent
9b5f8124
Room 컴포넌트를 위한 타입 작성
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
web/src/components/room/types.ts
web/src/components/room/types.ts
View file @
d61cf40
...
...
@@ -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
;
};
}
...
...
Please
register
or
login
to post a comment