This website requires JavaScript.
Explore
Help
Sign In
noby
/
workadventure
Watch
2
Star
2
Fork
0
You've already forked workadventure
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
workadventure
/
back
/
src
/
Model
/
Websocket
/
UserInGroupInterface.ts
6 lines
103 B
TypeScript
Raw
Normal View
History
Unescape
Escape
Removing all "any" from back. To do this, I used generic-type-guard package which generates both an interface AND a valid type guard from code. With this, we are 100% sure that the messages we receive are validated at runtime! The client cannot pass us an object that is invalid! \o/
2020-06-09 23:07:19 +02:00
export
interface
UserInGroupInterface
{
Migrating userId to "int32" to save some space and adding userMoves message in protobuf
2020-09-18 13:57:38 +02:00
userId
:
number
,
Removing all "any" from back. To do this, I used generic-type-guard package which generates both an interface AND a valid type guard from code. With this, we are 100% sure that the messages we receive are validated at runtime! The client cannot pass us an object that is invalid! \o/
2020-06-09 23:07:19 +02:00
name
:
string
,
initiator
:
boolean
}
Reference in New Issue
Copy Permalink