mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-27 14:44:12 +00:00
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
import { z } from "zod"
|
|
|
|
// We're keeping a simple non-relational schema here.
|
|
// IRL, you will have a schema for your data models.
|
|
export const taskSchema = z.object({
|
|
id: z.string(),
|
|
title: z.string(),
|
|
status: z.string(),
|
|
label: z.string(),
|
|
priority: z.string(),
|
|
})
|
|
|
|
export type Task = z.infer<typeof taskSchema>
|