타입만 지움
JS 생성은 안 함

enum Color { Red, Blue }              // 안 됨

namespace A {                         // 런타임 코드 있으면 안 됨
  export const x = 1;
}

class User {
  constructor(public name: string) {}  // 안 됨
}

import foo = require('foo');           // 안 됨

export = foo;                          // 안 됨

const el = <div />;                    // 안 됨

import { User } from './types.ts';     // 타입이면 import type 필요

Transpilation

결론