2020. 10. 1. 17:51, Developer
interface Person{
name:string,
hello():string,
}
const person:Person = {
name:'kim',
hello:():string=>{return 'hello'},
}
interface Person1{
name:string,
hello?():string,
}
const person:Person1 = {
name:'kim',
}
'Developer' 카테고리의 다른 글
[typescript]class - private (0) | 2020.10.01 |
---|---|
[typescript]interface-indexibel 은 string과 number 만 가능 (0) | 2020.10.01 |
[typescript]interface-optional property (0) | 2020.10.01 |
[JPA]변경감지와 병합 - 아주 중요함(진심) (3) | 2020.09.30 |
도메인 모델 패턴, 트랜잭션 스크립트 패턴 (0) | 2020.09.29 |
Comments, Trackbacks