Files
leim-tools/models/Category.ts
2024-06-10 22:25:34 +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")
})