mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 20:30:54 -05:00
9 lines
262 B
TypeScript
9 lines
262 B
TypeScript
import { Mode } from ".prisma/client";
|
|
import { z } from "zod";
|
|
import { assertType, Unpacked } from "~/utils";
|
|
|
|
type MapList = z.infer<typeof ModeSchema>;
|
|
assertType<Unpacked<MapList>, Mode>();
|
|
|
|
export const ModeSchema = z.enum(["TW", "SZ", "TC", "RM", "CB"]);
|