tasko/actions/update-list-order/schema.ts

15 lines
266 B
TypeScript
Raw Normal View History

2024-02-15 20:49:19 -05:00
import { z } from 'zod';
2024-02-14 21:30:10 -05:00
export const UpdateListOrder = z.object({
items: z.array(
z.object({
id: z.string(),
title: z.string(),
order: z.number(),
createdAt: z.date(),
updatedAt: z.date(),
})
),
boardId: z.string(),
});