기능 사용’에서 다룬 더 강력한 편집기 자동 완성과 해당 속성의 이름 변경이 가능해집니다.
문자열값의 한 가지 단점은 타입스크립트에 따라 자동으로 계산할 수 없다는 것입니다. 숫잣값
이 있는 멤버 뒤에 오는 열거형 멤버만 자동으로 계산할 수 있습니다.
타입스크립트는 다음 열거형의
ImplicitNumber
의 이전 멤버 값이 숫자
9000
이기 때문에
ImplicitNumber
값에
9001
을 제공할 수 있습니다. 하지만
NotAllowed
멤버는 ...
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.