Merged
Conversation
Closed
tjd985
approved these changes
Mar 30, 2025
Contributor
tjd985
left a comment
There was a problem hiding this comment.
이번주는 오타가 없네요^^ 👍🏻👍🏻
글 잘봤고, 이번주도 고생하셨습니다!
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
Comment on lines
130
to
138
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
Comment on lines
150
to
163
Contributor
There was a problem hiding this comment.
오,, 신기하네요
조건부 타입이라니.. Exclude 유틸리티 타입 배워갑니다! 🙌🏻
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
Comment on lines
198
to
216
Contributor
There was a problem hiding this comment.
class Chu {
getName(): string {
return "seulgi chu";
}
}
class Person extends Chu {}
function getNames<T extends Person>(person: T): string {
return person.getName();
}
const person = new Person();
console.log(getNames(person));
console.log(getNames({
getName: () => { return ''; },
}));이렇게 해도 되는걸 보니까, ts의 구조적 타이핑의 특성도 도드라지네요!
Comment on lines
227
to
254
Contributor
There was a problem hiding this comment.
interface와 type의 차이점이기도 하겠네요!
추후에 두개의 차이점을 말할때 같이 나올 수 있다면 좋을 것 같아요
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.
#10
3주차..! 고생많으셨습니당 👏
점점 어려워지네요...!!
이번 주도 화이팅입니다 👍