삘 받은 김에 질러버리는 글. 일전에 Type Alias가 Interface의 대부분 기능을 지원하니 Type Alias를 더 적극적으로 사용하자는 글을 썼다. 이후 열심히 그렇게 사용하다가 갑자기 뇌리를 스친 것이 있으니... // 1. 원래는 이렇게 하던 것을 interface User { name: string; age: number; } type Viewer = User; // 2. 이렇게 단축했다고 생각하면 어떨까 type Viewer = { name: string; age: number; }; 1번 type 선언은 User Interface의 Type Alias인 Viewer를 선언한다. 2번 type 선언은 임의의 Interface의 Type Alias인 Viewer 선언한 것인데 이 Int..