mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-01 13:04:44 +08:00
jsdoc
This commit is contained in:
parent
0a5509fdb2
commit
ac24f4c38e
1 changed files with 19 additions and 0 deletions
|
|
@ -19,6 +19,25 @@ export function setState(newState: number): void {
|
|||
state = newState;
|
||||
}
|
||||
|
||||
/**
|
||||
* -1 "error";
|
||||
*
|
||||
* 1 "connected";
|
||||
*
|
||||
* 5 "lobby";
|
||||
*
|
||||
* 10 "preparing race";
|
||||
*
|
||||
* 11 "race countdown";
|
||||
*
|
||||
* 12 "race active";
|
||||
*
|
||||
* 20 "at least one finished";
|
||||
*
|
||||
* 21 "everyone finished, waiting for everyone ready or view result timer to be over";
|
||||
*
|
||||
* 22 "everyone ready / timer over";
|
||||
*/
|
||||
export function getState(): number {
|
||||
return state;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue