-
Notifications
You must be signed in to change notification settings - Fork 0
[WEEK3] seulgi #30
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
[WEEK3] seulgi #30
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.
이번주는 오타가 없네요^^ 👍🏻👍🏻
글 잘봤고, 이번주도 고생하셨습니다!
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
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.
예시까지!! 👍
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
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.
오,, 신기하네요
조건부 타입이라니.. Exclude 유틸리티 타입 배워갑니다! 🙌🏻
CH03_고급_타입/3.3_제네릭_사용법/seulgi.md
Outdated
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.
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의 구조적 타이핑의 특성도 도드라지네요!
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.
interface와 type의 차이점이기도 하겠네요!
추후에 두개의 차이점을 말할때 같이 나올 수 있다면 좋을 것 같아요
#10
3주차..! 고생많으셨습니당 👏
점점 어려워지네요...!!
이번 주도 화이팅입니다 👍