AGENT SKILL

typescript-best-practices

Apply TypeScript best practices for strict mode, safe narrowing, tsconfig safety, robust error handling.

License 许可
MIT
最近更新
2026-06-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
typescript-best-practices
description
Apply TypeScript best practices for strict mode, safe narrowing, tsconfig safety, robust error handling.

03 SKILL.md 正文

typescript-best-practices

核心原則

  • strict: true
  • 禁用無意義的 any
  • 外部輸入先當 unknown
  • 用 narrowing、discriminated unions、type guards 收斂型別

04 同仓库更多 Skills