Make mode 2 generic (#2485)

This commit is contained in:
Ferotiq 2022-02-12 16:57:02 -06:00 committed by GitHub
parent 4f270b6a7d
commit 37ce1f0af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;