[9주차] Typescript#116
Merged
Merged
Conversation
Turtle-Hwan
approved these changes
Jun 2, 2025
Comment on lines
+1
to
+19
| interface MarketItem{ | ||
| title : string; | ||
| location : string; | ||
| timeAgo: string; | ||
| price: string; | ||
| image: string; | ||
| comments: number; | ||
| likes: number; | ||
| isSold: boolean; | ||
| } | ||
|
|
||
| interface MarketModel{ | ||
| location : string; | ||
| items: MarketItem[]; | ||
| } | ||
| const marketModel:MarketModel = { | ||
| location: "군자동", | ||
| items: [ | ||
| { |
Comment on lines
+13
to
+18
| {marketModel.items.map((item, index) => ( | ||
| item.isSold ? ( | ||
| <div key={index}></div> | ||
| ) : ( | ||
| <Content key={index} item={item} /> | ||
| ) |
Member
There was a problem hiding this comment.
여기서 불러올 때도 typescript를 넣었을 때는 어떤 것들이 들어있는지 바로 보이고,
javascript일 때는 안 보이지 않았나요?
이런 것들을 해보면서 ts가 편하다.. 라는 것을 체감하셨다면 좋겠네요!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📚 워크북 링크
https://simple-sun-49b.notion.site/9-TypeScript-20036c06223f80a2bac2c1d7cb0b4d6b?pvs=4
📝 변경/추가 사항 요약
✅ 리뷰 요구사항
📸 확인 방법 (스크린샷)
<제출 전 체크리스트>