tasko/actions/delete-board/types.ts

9 lines
272 B
TypeScript
Raw Normal View History

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