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
- localStorage
- 개발자
- SSE
- ServerSentEvent
- partitioning
- EventSource
- node.js란
- 열공하자
- 파티셔닝
- node.js
- PostgreSQL
- mariadb
- Partition
- Node.js기본
- Lag
- 성장기
- frontend
- 실시간알림
Archives
- Today
- Total
써치킴의 우당탕탕 개발 블로그
[TypeScript][ch5][Interface] interface extends interface 본문
인터페이스를 상속해서 인터페이스 표현
interface IPerson2{
name: string;
age?: number;
}
// 상속을 이용해서 인터페이스 표현
interface iKorean extends IPerson2 {
city: string;
}
const k: iKorean = {
name: 'searchkim',
age: 29,
city: '인천'
}
'TypeScript 합시다' 카테고리의 다른 글
[TypeScript][ch5][Interface] Readonly Interface Properties (0) | 2022.02.14 |
---|---|
[TypeScript][ch5][Interface] function interface (0) | 2022.02.14 |
[TypeScript][ch5][Interface] class implements interface (0) | 2022.02.14 |
[TypeScript][ch5][Interface] function in interface (0) | 2022.02.14 |
[TypeScript][ch5][Interface] optional property (0) | 2022.02.14 |
Comments