TypeScript 基础类型包括:

  1. 布尔类型(boolean)
  2. 数字类型(number)
  3. 字符串类型(string)
  4. 数组类型(Array)
  5. 元组类型(Tuple)
  6. 枚举类型(enum)
  7. 任意类型(any)
  8. 空类型(void)
  9. null 和 undefined
  10. 对象类型(object)
  11. 类型断言(Type Assertion)
typeScript 基础类型有哪些