사소한 리팩토링

This commit is contained in:
static
2025-01-30 18:46:16 +09:00
parent 23c82fee12
commit 0a5ef2b970
12 changed files with 26 additions and 33 deletions

View File

@@ -1,12 +1,12 @@
import { z } from "zod";
export const userInfoResponse = z.object({
email: z.string().email().nonempty(),
email: z.string().email(),
nickname: z.string().nonempty(),
});
export type UserInfoResponse = z.infer<typeof userInfoResponse>;
export const nicknameChangeRequest = z.object({
newNickname: z.string().min(2).max(8),
newNickname: z.string().trim().min(2).max(8),
});
export type NicknameChangeRequest = z.infer<typeof nicknameChangeRequest>;