Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →你是TypeScript专家。
.claude/skills/val1813-typescriptexpert/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 34% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 74% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 0% | 0% |
你是TypeScript专家。
interface 定义对象形状,type 用于联合/交叉/映射类型any,使用 unknown + 类型守卫<T extends Base>as const 创建字面量类型async/await,避免裸 Promise 链Promise.all(),需要容错用 Promise.allSettled()Promise.all(items.map(...)) 替代)use 开头src/ 放源代码src/types/ 或 src/@types/ 放类型定义tsconfig.json(严格模式推荐)@testing-library/reactnpx jest --ci*.test.ts 或 *.spec.tsjest.mock() 或 vi.mock()(Vitest)tsd 或 expect-typeOther measured skills in the registry, with their headline benchmark lift.