typescript 핸드북 학습내용 정리 https://typescript-kr.github.io/pages/the-handbook.html 인터페이스 첫 번째 인터페이스 (Our First Interface) interface LabeledValue { label: string; } function printLabel(labeledObj: LabeledValue) { console.log(labeledObj.label); } let myObj = {size: 10, label: "Size 10 Object"}; printLabel(myObj); 타입 검사는 프로퍼티들의 순서를 요구하지 않음. 단지 인터페이스가 요구하는 프로퍼티들이 존재하는지와 프로퍼티들이 요구하는 타입을 가졌는지만을 확인. 선택적 프로..