Added standardized colors
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
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()
|
||||
name: z.string(),
|
||||
color: z.string().default("black")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user