d.ts 파일은 JS로 작성된 API에 대한 타입 정보를 제공하는데 사용한다.
jQuery나 underscore와 같은 것을 TS로 재작성 하는 것 대신에, type annotation만 포함하고 있는 d.ts file을 작성할 수 있다.
pure JS 라이브러리 사용하는 동안, TS 코드에서 static type checking 이점을 얻을 수 있다.
interface ITest {
foo: string;
bar: string;
}
type IMyAlias = ITest;