mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
Make mode 2 generic (#2485)
This commit is contained in:
parent
4f270b6a7d
commit
37ce1f0af5
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ export declare type CustomModes = "custom";
|
|||
|
||||
export declare type Mode = "time" | "words" | "quote" | "zen" | CustomModes;
|
||||
|
||||
export declare type Mode2 = number | "zen" | "custom";
|
||||
export declare type Mode2<M extends Mode> = keyof PersonalBests[M];
|
||||
|
||||
// export declare type Mode2 = 10 | 15 | 25 | 30 | 50 | 60 | 100 | 120 | 200 | "zen" | "custom";
|
||||
|
||||
export declare type NoncustomWordsModes = 10 | 25 | 50 | 100 | 200;
|
||||
|
||||
|
|
Loading…
Reference in a new issue