tasko/actions/update-card/types.ts

10 lines
269 B
TypeScript
Raw Normal View History

2024-02-15 20:49:19 -05:00
import { z } from 'zod';
import { Card } from '@prisma/client';
2024-02-14 21:30:10 -05:00
2024-02-15 20:49:19 -05:00
import { ActionState } from '@/lib/create-safe-action';
2024-02-14 21:30:10 -05:00
2024-02-15 20:49:19 -05:00
import { UpdateCard } from './schema';
2024-02-14 21:30:10 -05:00
export type InputType = z.infer<typeof UpdateCard>;
2024-02-15 20:49:19 -05:00
export type ReturnType = ActionState<InputType, Card>;