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

9 lines
269 B
TypeScript

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