mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 08:55:37 +08:00
no circle
This commit is contained in:
parent
d3713858ae
commit
5c177c5d36
2 changed files with 6 additions and 3 deletions
|
@ -206,8 +206,8 @@ export type ShowAverage = z.infer<typeof ShowAverageSchema>;
|
|||
export const ColorHexValueSchema = z.string().regex(/^#([\da-f]{3}){1,2}$/i);
|
||||
export type ColorHexValue = z.infer<typeof ColorHexValueSchema>;
|
||||
|
||||
export const DifficultySchema = z.enum(["normal", "expert", "master"]);
|
||||
export type Difficulty = z.infer<typeof DifficultySchema>;
|
||||
export const DifficultySchema = Shared.DifficultySchema;
|
||||
export type Difficulty = Shared.Difficulty;
|
||||
|
||||
export const ModeSchema = Shared.ModeSchema;
|
||||
export type Mode = Shared.Mode;
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
import { z } from "zod";
|
||||
import { DifficultySchema } from "./configs";
|
||||
import { StringNumberSchema } from "./util";
|
||||
|
||||
//used by config
|
||||
export const DifficultySchema = z.enum(["normal", "expert", "master"]);
|
||||
export type Difficulty = z.infer<typeof DifficultySchema>;
|
||||
|
||||
//used by user and config
|
||||
export const PersonalBestSchema = z.object({
|
||||
acc: z.number().nonnegative().max(100),
|
||||
|
|
Loading…
Reference in a new issue