Skip to content

sunyangcheng/learn-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learn-typescript

01-ts-basic

  1. hello.ts

02-everyday-types

  1. 01-the-primitives.ts(基元类型)
  2. 02-array.ts(数组类型)
  3. 03-any.ts(any 类型)
  4. 04-type-annotation.ts(类型注释)
  5. 05-function.ts(函数类型)
  6. 06-object.ts(对象类型)
  7. 07-union.ts(联合类型)
  8. 08-type-aliases.ts(类型别名)
  9. 09-interface.ts(接口类型)
  10. 10-type-assertion.ts(类型断言)
  11. 11-literal-types.ts(文字类型)
  12. 12-null-and-undefined.ts
  13. 13-enum.ts(枚举类型)
  14. 14-bigint-and-symbol.ts

03-narrowing

  1. 01-typeof-type-guards.ts(typeof 类型守卫)
  2. 02-truthiness-narrowing.ts(真值缩小)
  3. 03-equality-narrowing.ts(等值缩小)
  4. 04-the-in-operator-narrowing.ts(in 操作符缩小)
  5. 05-instanceof-narrowing.ts(instanceof 操作符缩小)
  6. 06-assignment-narrowing.ts(分配缩小)
  7. 07-control-flow-analysis.ts(控制流分析)
  8. 08-using-type-predicates.ts(类型谓词)
  9. 09-discriminated-unions.ts(受歧视的 unions)
  10. 10-never-type.ts(never 类型与穷尽性检查)

04-more-on-function

  1. 01-function-type-expression.ts(函数表达式)
  2. 02-call-signatures.ts(函数调用)
  3. 03-constructor-signatures.ts(构造签名)
  4. 04-generic-functions.ts(泛型函数-类型推断)
  5. 05-gf-constraints.ts(泛型函数-限制条件)
  6. 06-gf-working-with-constrained-values.ts(泛型函数-使用受限值)
  7. 07-gf-specifying-type-arguments.ts(泛型函数-指定类型参数)
  8. 08-gf-best-practices.ts(泛型函数-编写优秀通用的准则)
  9. 09-optional-parameters.ts(函数的可选参数)
  10. 10-optional-parameters-in-callbacks.ts(回调中的可选参数j)
  11. 11-function-overloads.ts(函数重载-基本语法)
  12. 12-signatures-and-implements-signatures.ts(函数重载-重载签名和实现签名)
  13. 13-writing-good--overloads.ts(函数重载-编写好的重载)
  14. 14-declaring-this-in-function.ts(函数重载-函数内this的声明)
  15. 15-rest-parameters.ts(参数展开运算符-形参展开)
  16. 16-rest-arguments.ts(参数展开运算符-实参展开)
  17. 17-parameters-destructuring.ts(参数解构)
  18. 18-return-void-type.ts(返回void类型)

About

learn typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published