no circle

This commit is contained in:
Christian Fehmer 2024-07-30 15:12:41 +02:00
parent d3713858ae
commit 5c177c5d36
No known key found for this signature in database
GPG key ID: FE53784A69964062
2 changed files with 6 additions and 3 deletions

View file

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

View file

@ -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),