tasko/actions/copy-board/types.ts

9 lines
268 B
TypeScript
Raw Permalink Normal View History

2024-03-30 03:15:34 +00:00
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>;