tasko/actions/create-board/types.ts
2024-02-14 21:30:10 -05:00

8 lines
272 B
TypeScript

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