Skip to content

[9주차] Typescript#116

Merged
Turtle-Hwan merged 3 commits into
mainfrom
week8#1
Jun 2, 2025
Merged

[9주차] Typescript#116
Turtle-Hwan merged 3 commits into
mainfrom
week8#1

Conversation

@sangh2ee
Copy link
Copy Markdown
Contributor

📚 워크북 링크

https://simple-sun-49b.notion.site/9-TypeScript-20036c06223f80a2bac2c1d7cb0b4d6b?pvs=4

📝 변경/추가 사항 요약

  • todo 실습 (week3 JS -> TS)
  • week4 JS->TS

✅ 리뷰 요구사항

📸 확인 방법 (스크린샷)

image

<제출 전 체크리스트>

  • [] week00 폴더 내에 자신의 폴더를 새로 만드셨나요?
  • [] 자신 폴더 외의 다른 사람의 폴더에서 코드를 수정하지 않았나요?

Copy link
Copy Markdown
Member

@Turtle-Hwan Turtle-Hwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~

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: [
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

타입 잘 넣어주신 거 같네요!

Comment on lines +13 to +18
{marketModel.items.map((item, index) => (
item.isSold ? (
<div key={index}></div>
) : (
<Content key={index} item={item} />
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기서 불러올 때도 typescript를 넣었을 때는 어떤 것들이 들어있는지 바로 보이고,
javascript일 때는 안 보이지 않았나요?

이런 것들을 해보면서 ts가 편하다.. 라는 것을 체감하셨다면 좋겠네요!

@Turtle-Hwan Turtle-Hwan merged commit 8c7bee9 into main Jun 2, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants