File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ # 🚀 TypeScript Gymnastics Challenge
12
3+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/ExploitationExplorers/typecript-gymnastics-challenge?style=flat-square )] ( https://github.com/ExploitationExplorers/typecript-gymnastics-challenge/stargazers )
4+ [ ![ GitHub license] ( https://img.shields.io/github/license/ExploitationExplorers/typecript-gymnastics-challenge?style=flat-square )] ( https://github.com/ExploitationExplorers/typecript-gymnastics-challenge/blob/master/LICENSE )
5+ [ ![ GitHub contributors] ( https://img.shields.io/github/contributors/ExploitationExplorers/typecript-gymnastics-challenge?style=flat-square )] ( https://github.com/ExploitationExplorers/typecript-gymnastics-challenge/graphs/contributors )
6+
7+ ✨ 欢迎来到TypeScript类型体操训练场!本项目通过一系列精心设计的挑战题目,帮助你掌握TypeScript高级类型编程技巧。
8+
9+ 🌐 在线体验地址:https://exploitationexplorers.github.io/typecript-gymnastics-challenge/
10+
11+ ## 🎯 项目特点
12+ - 🧩 渐进式难度设计,从基础到进阶
13+ - 🔬 每个挑战都配备单元测试
14+ - 🛠️ 基于Vitest的测试环境
15+ - 📈 实时类型验证反馈
16+ - 🏆 成就系统激励学习
17+ -
18+ ## 📚 挑战题目
19+ ### 🐣 简单难度(Easy)
20+ - ` Capitalize ` 🆙 - 字符串首字母大写
21+ - ` TupleToObject ` 🏷️ - 元组转对象类型
22+ - ` FirstOfArray ` 🥇 - 获取数组第一个元素类型
23+ - ` LengthOfTuple ` 📏 - 获取元组长度类型
24+ .....
25+ ### 🦊 中等难度(Medium)
26+ - ` Exclude ` 🚫 - 实现类型排除运算
27+ - ` Awaited ` ⏳ - 递归解包Promise类型
28+ - ` If<C, T, F> ` 🤔 - 类型条件判断
29+ - ` Concat<T, U> ` ➕ - 类型安全的数组合并
30+ .....
31+ ### 🐉 困难难度(Hard)
32+ - ` Curry ` 🍛 - 函数柯里化类型
33+ - ` StringToNumber ` 🔢 - 字符串转数字类型
34+ - ` UnionToIntersection ` ⚡ - 联合类型转交叉类型
35+ - ` DeepReadonly ` 🔒 - 深度只读类型转换
36+ - ` Permutation ` 🌀 - 生成所有可能的类型排列
37+
38+ ....
39+
40+ ## 🧑💻 快速开始
41+ ``` bash
42+ # 克隆项目
43+ git clone https://github.com/ExploitationExplorers/typecript-gymnastics-challenge.git
44+
45+ # 安装依赖
46+ npm install
47+
48+ # 运行测试
49+ npm test
50+ ```
51+
52+ ## 🤝 参与贡献
53+ 欢迎提交PR!请参考:
54+
55+ 1 . 在 src/challenges/ 目录创建新挑战
56+ 2 . 在 src/tests/ 添加对应测试用例
57+ 3 . 更新 docs/ 中的文档说明
58+
59+
60+ ## 📄 许可证
61+ MIT License © 2024 ExploitationExplorers
You can’t perform that action at this time.
0 commit comments