tasko/actions/update-board/types.ts

10 lines
273 B
TypeScript
Raw Permalink Normal View History

2024-02-16 01:49:19 +00:00
import { z } from 'zod';
import { Board } from '@prisma/client';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { ActionState } from '@/lib/create-safe-action';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { UpdateBoard } from './schema';
2024-02-15 02:30:10 +00:00
export type InputType = z.infer<typeof UpdateBoard>;
2024-02-16 01:49:19 +00:00
export type ReturnType = ActionState<InputType, Board>;