인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

pream's profile image
pream

asked

Next + Create a SNS service with React Query

Event capturing and /status/[id] page

Type에서 줄바꿈시 콤마 혹은 세미콜론 둘 다 가능한가요?

Resolved

Written on

·

224

0

type Props = {
   postId: number;
   userName: string,
   userId: number;
}

위 코드처럼 type에서는 끝에 ; 혹은 , 둘 다 섞어서 써도 괜찮은가요?

reactnext.jsreact-querynext-authmsw

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

네, 둘 다 해도 됐던 것 같습니다.

pream's profile image
pream

asked

Ask a question