-
Notifications
You must be signed in to change notification settings - Fork 0
[WEEK5] seulgi #35
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
[WEEK5] seulgi #35
Conversation
tjd985
left a comment
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.
잘읽었습니다~~~
오타 두개만 수정해주세요!
이번주도 고생 많으셨습니당ㅎㅎㅎ
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.
type Obj = { [key: string]: number; };
type KeyType = keyof Obj; // string | number;이 예제에서 key는 string | number이며, 이는 자바스크립트 객체 키가 항상 문자열로 강제 지정되므로 객체[0]은 항상 객체["0"]와 동일하기 때문이네요!
덕분에 하나 배워갑니다!! 👍🏻
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.
오호 저도 몰랐었는데 덕분에 배워요!!!!!
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.
| 이때 타입스크립트는 키가 유효하지 않더라도 타입상으로는 문제가 없기 떄문에 오류를 표시하지 않는다. | |
| 이때 타입스크립트는 키가 유효하지 않더라도 타입상으로는 문제가 없기 때문에 오류를 표시하지 않는다. |
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.
수정 완료했습니다!
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.
| > 이럴 때는 개발 중에 유효하지 않은 키가 사용되었는 지 또는 undefined일 수 있는 값이 있는 지 등 사전에 타입스크립트 기능을 활용헤 파악하는 것이 중요하다. | |
| > 이럴 때는 개발 중에 유효하지 않은 키가 사용되었는 지 또는 undefined일 수 있는 값이 있는 지 등 사전에 타입스크립트 기능을 활용해 파악하는 것이 중요하다. |
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.
수정 완료했습니다!
tjd985
left a comment
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.
겁나게 빠른 오타 수정.. 감사합니다!!
close #15
5주차 기다려주셔서 감사합니다 👍
한 주 쉰덕에 더 보기 수월했던 것 같아요!
감기 조심하세요 🥇 🏠 🍄🟫