tasko/actions/copy-board/types.ts
2024-03-29 23:15:34 -04:00

8 lines
268 B
TypeScript

import { z } from 'zod';
import { Board } from '@prisma/client';
import { ActionState } from '@/lib/create-safe-action';
import { CopyBoard } from './schema';
export type InputType = z.infer<typeof CopyBoard>;
export type ReturnType = ActionState<InputType, Board>;