When running the examples demo with the latest commit, for example, the state handler demo no longer works.
0
Reputation
3
Posts
1008
Profile views
0
Followers
0
Following
Posts made by tsum
I think the last commit broke something
posted in General Discussion •
Dumb question about Colyseus typescript syntax
posted in Questions & Help •
I'm a TS newbie. I see Colyseus example code like
@type("number")
x = 4;
I can't find other examples of this syntax in typescript documentation. What is it? It looks more like type annotations that normally appear in code comments.
Why doesn't it use the typescript colon syntax, as in
x:number = 4;