Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- err_connection_refused
- 상속
- Spring
- npm에러
- 스크롤이벤트
- react
- Next.js
- app:compiledebugkotlin
- interface
- reactnative error
- 안드로이드빌드에러
- javascript
- app.post
- reactnative
- 타입스크립트
- 슬라이딩윈도우
- map
- 이진탐색
- array
- set
- forwardref type
- generic
- extends
- Filter
- 리액트네이티브아이콘
- async
- 배열중복요소제거
- TS
- materialicons
- mainapplication.kt
Archives
- Today
- Total
목록interface type (1)
rhanziy
TS - interface 로 type 키워드 구현
원래는 intersection type이라고 & 연산자를 통해 두 타입을 만족하는 코드를 짤 수 있었다. // intersection type // 두 타입을 만족하는 타입을 뜻함 type Animal2 = { name : string } type Cat2 = { age : number } & Animal2 let munzi :Cat2 = { name : 'munzi', age : 10 } 그런데 interface로도 가능. extends 하면 되니까. interface Student{ name : string; } interface Student{ score : number; } interface Teacher extends Student { age : number } let 학생 :Student = ..
Html_css_js
2023. 1. 27. 18:11