mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
13 lines
351 B
TypeScript
13 lines
351 B
TypeScript
|
|
import { z } from "zod";
|
||
|
|
|
||
|
|
export const createProjectSchema = z.object({
|
||
|
|
name: z.string().min(1),
|
||
|
|
description: z.string().optional().nullable(),
|
||
|
|
});
|
||
|
|
|
||
|
|
export type CreateProject = z.infer<typeof createProjectSchema>;
|
||
|
|
|
||
|
|
export const updateProjectSchema = createProjectSchema.partial();
|
||
|
|
|
||
|
|
export type UpdateProject = z.infer<typeof updateProjectSchema>;
|