Skip to content

Udemy/Ts/section2/24 #29

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

Merged
merged 29 commits into from
Sep 1, 2024
Merged

Udemy/Ts/section2/24 #29

merged 29 commits into from
Sep 1, 2024

Conversation

4BFC
Copy link
Member

@4BFC 4BFC commented Sep 1, 2024

✍Udemy/Ts/section2/24

본 PR은 청강 1회독을 마친 후 N회독으로 작성된 PR입니다.

🔥KeyWord

  • Alias Type
  • Union Type
  • type

📝Description

  • Alias Type
    • 🚩: Alias Type으로 타입 별칭 생성
    • 항상 유니온 타입으로 타입 지정하는 것은 많이 번거고 가독성이 떨어져 보인다. 이에 Alias Type으로 사용자 지정 타입을 정할 수 있다. 즉, 타입을 우리가 다로 별칭으로 만들어 낼 수 있다. 이를 통해서 조금더 확실히 타입을 보다 편하게 관리 할 수 있다.
  • Collaboration with Union Type and Alias Type
    • 🚩: Alias Type을 활용한 Union Type 지정 방식과 활용 예시
    • 사용 방식은 어렵지 않다. 내가 원하는 타입을 변수와 같이 지정해서 사용할 수 있다. 단 일반적인 자료형(var, let, const)이 아닌 type으로 지정을 해줘야 한다.
      • type은 무엇인가?
        • type이라는 키워드는 자료형이 아니다. 단순히 내가 사용할 Type을 타입 별칭을 나타내기 위한 키워드인 것이다.

📌Summary

  • 지금가지 type이란 키워드를 사용해서 활용한 Ts 코드들을 본적 있다. 그때마다 이것이 무엇인지 명확히 이해가가 가지 않았는데 이번 수업을 통해서 type이란 키워드가 무엇을 의미하고 이런 키워드를 Alias라 지칭한다는 개념도 알게 되었다. 이를 잘 활용하면 복잡한 로직을 조금 더 수월하게 관리할 수 있지 않을까 생각도 들지만 반대로 직관적이지 않아서 조금은 불편한 감이 있지 않을까 하는 우려도 있다.

4BFC and others added 29 commits August 27, 2024 01:50
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 작성한 커밋입니다.
Github에서 작성한 커밋입니다.
Github에서 수정한 커밋입니다.
Github에서 수정한 커밋입니다.
@4BFC 4BFC added the 2회독 회독 label Sep 1, 2024
@4BFC 4BFC added this to the Udemy:TypeScript milestone Sep 1, 2024
@4BFC 4BFC self-assigned this Sep 1, 2024
@4BFC 4BFC changed the base branch from main to UdemyTs September 1, 2024 09:01
@4BFC 4BFC merged commit 0ea6332 into UdemyTs Sep 1, 2024
@4BFC 4BFC linked an issue Sep 1, 2024 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2회독 회독
Projects
None yet
Development

Successfully merging this pull request may close these issues.

section2/24
1 participant