tasko/actions/update-card-order/schema.ts
2024-02-15 20:49:19 -05:00

15 lines
292 B
TypeScript

import { z } from 'zod';
export const UpdateCardOrder = z.object({
items: z.array(
z.object({
id: z.string(),
title: z.string(),
order: z.number(),
listId: z.string(),
createdAt: z.date(),
updatedAt: z.date(),
})
),
boardId: z.string(),
});