Files
leim-tools/models/Category.ts
2025-04-06 14:41:46 +02:00

15 lines
269 B
TypeScript

import { z } from "zod"
import type { RPGColor } from "./Color"
export interface Category {
id: number
name: string
color?: RPGColor
}
export const categorySchema = z.object({
id: z.number().int(),
name: z.string(),
color: z.string().default("black"),
})