10 lines
266 B
TypeScript
10 lines
266 B
TypeScript
import { z } from "zod";
|
|
|
|
export const updateUserSchema = z.object({
|
|
username: z.string().min(3).max(20).optional(),
|
|
bio: z.string().max(300).optional(),
|
|
avatar: z.string().url().optional(),
|
|
});
|
|
|
|
export type UpdateUserInput = z.infer<typeof updateUserSchema>;
|