TS에 여러번 선언된 type을 모듈화 할 수 있는 방법은 2가지입니다.
type)정의: 타입 별칭은 특정 타입이나 인터페이스를 참조할 수 있는 타입 변수를 의미합니다.
type Todo = {
id: number;
title: string;
done: boolean;
};
let todoItems: Todo[];
타입 별칭은 새로운 타입 값을 하나 생성하는 것이 아니라 정의한 타입에 대해 나중에 쉽게 참고할 수 있게 이름을 부여하는 것과 같습니다.
](https://joshua1988.github.io/ts/assets/img/interface-preview.c17462bf.png)
](https://joshua1988.github.io/ts/assets/img/type-preview.0035610f.png)