-
Notifications
You must be signed in to change notification settings - Fork 22
[김단이] Sprint11 #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[김단이] Sprint11 #58
The head ref may contain hidden characters: "express-\uAE40\uB2E8\uC774-sprint11"
Conversation
| }); | ||
|
|
||
| export type SignUpDTO = z.infer<typeof SignUpSchema>; | ||
| export type SignInDTO = z.infer<typeof SignInSchema>; No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zod 활용 잘 하셨어요!!
| userId: number; | ||
| }; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generic 활용 너무 잘 하셨어요. 팀 프로젝트 시 팀원들한테 지식공유 해주시면 더 좋을 것 같아요.
| code?: number; | ||
| }; | ||
| error.code = 403; | ||
| throw error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러 처리도 깔끔합니다!
| export async function getArticleById( | ||
| id: number, | ||
| userId?: number | ||
| ): Promise<any | null> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 코드에서는 generic 등 잘 쓰셨는데 any를 지양하는 방법 한번 고민해보세요!
| import multer from "multer"; | ||
| import multer, { StorageEngine } from "multer"; | ||
| import path from "path"; | ||
| import fs from "fs"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs/promise를 안 쓰시고 동기를 쓰신 이유가 궁금합니다!
ded7b1e
into
codeit-sprint-fullstack:express-김단이
🏁 스프린트 미션 11 - 시안 확인
🔗 참고 링크
스프린트 미션 11 Figma 디자인 확인하러 바로가기
✅ 요구사항 체크리스트
기본 요구사항
공통
프론트엔드
백엔드
📸 스크린샷
📝 멘토님에게 남길 메시지