// Error: Type 'number' is not assignable to type 'string[]'.// Error: Type 'number' is not assignable to type 'string[]'.
});
대부분의 실제 코드에서 개발자는 클래스 타입을 요청하는 위치에 객체의 값을 전달하지 않습니다. 이
러한 구조적인 확인 동작은 예상하지 못한 것처럼 보일 수 있지만 자주 나타나지는 않습니다.
8.4
클래스와 인터페이스클래스와 인터페이스
7
장 ‘인터페이스’에서 타입스크립트 개발자가 코드에서 객체의 형태를 예측할 수 있도록 인터
페이스로 설정하는 방법을 살펴봤습니다. 타입스크립트는 클래스 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.