일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- async
- array
- app:compiledebugkotlin
- materialicons
- react
- Filter
- app.post
- 슬라이딩윈도우
- javascript
- TS
- err_connection_refused
- 안드로이드빌드에러
- generic
- reactnative
- interface
- 리액트네이티브아이콘
- 스크롤이벤트
- extends
- 상속
- npm에러
- map
- 타입스크립트
- 이진탐색
- 배열중복요소제거
- reactnative error
- Spring
- forwardref type
- Next.js
- set
- mainapplication.kt
- Today
- Total
목록TS (2)
rhanziy
interface SStorage { [key:string] : T } class LocalStorage { private storage: SStorage = {} set(key:string, value:T){ this.storage[key] = value; } remove(key:string){ delete this.storage[key] } get(key:string):T { return this.storage[key] } clear(){ this.storage = {} } } const stringsStorage = new LocalStorage() stringsStorage.get("key") stringsStorage.set("hello", "how are you") const booleanSt..
abstract class User { constructor( protected firstName: string, protected lastName:string ){} abstract sayHi(name:string):string abstract fullName():string } class Player2 extends User { sayHi(name:string){ return `Hello ${name}. My name is ${this.fullName()}` } fullName(){ return `#{this.firstName} ${this.lastName}` } } 타입스크립트에서 추상클래스를 구현하면 자바스크립트에서 컴파일했을 때 일반적인 클래스로 바뀌어버림. class User { constru..