Skip to content
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

[Typescript] Interface #12

Open
amorfati0310 opened this issue Oct 25, 2020 · 0 comments
Open

[Typescript] Interface #12

amorfati0310 opened this issue Oct 25, 2020 · 0 comments

Comments

@amorfati0310
Copy link
Owner

인터페이스는 선언병합이 가능 유연?
합타입 혹은 튜플 타입을 써야 할 때 주로 type으로 정의

type이나 interface 대부분의 기능을 공유하므로 팀에서 일관성 있게 사용하는게 중요 !

ETC

extends 중첩이 가능하다 

interface Dali extends Person, Programmer {
  like: Array<string>
}

type Dali = Person & Programmer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant