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

15 lines
266 B
TypeScript
Raw Normal View History

2024-02-16 01:49:19 +00:00
import { z } from 'zod';
2024-02-15 02:30:10 +00: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(),
});