Files
leim-tools/models/Category.ts
2024-08-25 14:14:40 +02:00

15 lines
268 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")
})