1.类型声明空间

  1. class Foo {}
  2. interface Bar {}
  3. type Bas = {};

2.变量声明空间

  1. class Foo {}
  2. const someVar = Foo;
  3. const someOtherVar = 123;

总结:class即存在变量声明空间,也可做类型注解使用。而interface, type只可以存在类型声明空间。
const let声明的变量只能存在变量声明空间。