TypeScript as const, readonly, as 타입단언 제대로 이해하기

widening 문제부터 타입 단언의 위험성까지