type-challenges
2025/4/28大约 2 分钟
type-challenges
type-challenges:TypeScript 类型体操姿势合集。
- 2 - 获取函数返回类型
- 3 - 实现 Omit
- 4 - 实现 Pick
- 7 - 对象属性只读
- 8 - 对象部分属性只读
- 9 - 对象属性只读(递归)
- 10 - 元组转合集
- 11 - 元组转换为对象
- 12 - 可串联构造器
- 14 - 第一个元素
- 15 - 最后一个元素
- 16 - 排除最后一项
- 18 - 获取元组长度
- 20 - Promise.all
- 43 - 实现 Exclude
- 62 - 查找类型
- 106 - 去除左侧空白
- 108 - 去除两端空白字符
- 110 - Capitalize
- 116 - Replace
- 119 - ReplaceAll
- 189 - Awaited
- 191 - 追加参数
- 268 - If
- 296 - Permutation
- 298 - Length of String
- 459 - Flatten
- 527 - Append to object
- 529 - Absolute
- 531 - String to Union
- 533 - Concat
- 599 - Merge
- 612 - KebabCase
- 645 - Diff
- 898 - Includes
- 949 - AnyOf
- 1042 - IsNever
- 1097 - IsUnion
- 1130 - ReplaceKeys
- 1367 - Remove Index Signature
- 1978 - Percentage Parser
- 2070 - Drop Char
- 2257 - MinusOne
- 2595 - PickByType
- 2688 - StartsWith
- 2693 - EndsWith
- 2757 - PartialByKeys
- 2759 - RequiredByKeys
- 2793 - Mutable
- 2852 - OmitByType
- 2946 - ObjectEntries
- 3057 - Push
- 3060 - Unshift
- 3312 - Parameters