일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Flutter
- React JS
- MVVM
- AnimationController
- Animation
- 파이어베이스
- 깃허브
- 마우이
- page
- 바인딩
- MSSQL
- db
- MS-SQL
- 리엑트
- GitHub
- spring boot
- 함수
- typescript
- 애니메이션
- 닷넷
- HTML
- 플러터
- JavaScript
- Firebase
- 오류
- .NET
- 자바스크립트
- listview
- Maui
- Binding
Archives
- Today
- Total
목록Interface (1)
개발노트
6. [TypeScript] Interface 사용법 (with type과의 차이점)
Interface interface Person { firstName: string; lastName: string; fullName(): string; } class Employee implements Person { constructor(public firstName: string, public lastName: string) {} fullName(): string { return `${this.firstName} ${this.lastName}`; } } const emp = new Employee("John", "Doe"); console.log(emp.fullName()); // 출력: John Doe Type으로 했을 때 동일한 소스 type Person = { firstName: string;..
웹 개발/TypeScript
2023. 8. 7. 18:22