tasko/actions/delete-card/types.ts

10 lines
269 B
TypeScript
Raw Normal View History

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