EasyEnv
Engineering/课程/课程目录/TypeScript/Type Alias vs Interface
TypeScript
入门第 8 / 18 节20 分钟 · 实操

Type Alias vs Interface

TypeScript 课程的一部分

之前你一直把对象结构直接写在用到的地方,这没什么问题,因为那些结构都很小。现在看一个来自真实代码库的函数签名 ...

想在真实环境里学习 TypeScript Type Alias vs Interface 吗?

点击下方,立即获得一台预装 TypeScript 的 Linux 主机,跟懂你代码的 AI 导师一起完成 Type Alias vs Interface 的实操练习。

开始这节课Type Alias vs Interface

你将学到什么

  • Type aliases
  • Interface declarations
  • Extending interfaces
  • Intersection types
  • Declaration merging
  • When to pick which

用你的语言阅读本课

本课程的所有课时

18 节
  1. 1你好,TypeScript20 分钟
  2. 2类型(Type)基础25 分钟
  3. 3数组与 Tuple25 分钟
  4. 4对象类型(Type)与 Interface25 分钟
  5. 5函数25 分钟
  6. 6Union 与 Literal 类型(Type)25 分钟
  7. 7类型(Type) Narrowing30 分钟
  8. 8Type Alias vs Interface20 分钟
  9. 9Optional、Readonly 与 Nullable25 分钟
  10. 10Enum20 分钟
  11. 11Generic30 分钟
  12. 12Class25 分钟
  13. 13继承与 Abstract Class25 分钟
  14. 14模块(Module)25 分钟
  15. 15工具类型(Utility Types)30 分钟
  16. 16Mapped 与 Conditional 类型(Type)30 分钟
  17. 17声明文件(Declaration Files)与第三方库25 分钟
  18. 18tsconfig 与编译器(Compiler)30 分钟

探索其他课程

Type Alias vs Interface - TypeScript (Chinese) | Engineering Courses