13 lines
310 B
TypeScript
13 lines
310 B
TypeScript
|
|
import { z } from 'zod';
|
||
|
|
|
||
|
|
export const createNoteSchema = z.object({
|
||
|
|
content: z.string().min(1),
|
||
|
|
});
|
||
|
|
|
||
|
|
export const updateNoteSchema = z.object({
|
||
|
|
content: z.string().min(1),
|
||
|
|
});
|
||
|
|
|
||
|
|
export type CreateNoteInput = z.infer<typeof createNoteSchema>;
|
||
|
|
export type UpdateNoteInput = z.infer<typeof updateNoteSchema>;
|