/type-challenges

Primary LanguageTypeScriptMIT LicenseMIT

ts遍历三种方式

  1. 数组 [P in T[number]]
  2. union [P in K]
  3. interface [P in keyof T]