Search

PythonReactSEOPDF
GitHub Skill

reviewing-type-safety

TypeScript type safety patterns and best practices for maximum type coverage. Triggers: TypeScript, type safety, any, 型安全, 型カバレッジ, strict mode.

thkt☆ 3 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

型安全レビュー

検出

ID パターン 修正
TS1 any unknown + 型ガード
TS1 暗黙的any 明示的な型アノテーション
TS2 value as Type 型ガード関数
TS2 value! (非nullアサーション) 明示的なnullチェック
TS3 function fn(data) (型なし) function fn(data: Type)
TS3 戻り値型の欠如 明示的な : ReturnType
TS4 網羅的でないdefault: default: assertNever(value)

基準

型カバレッジ >= 95%。Any使用 = 0。Strictモード全て有効。

参考

トピック ファイル
カバレッジ references/type-coverage.md
ガード references/type-guards.md
Strict references/strict-mode.md
Result references/result-type.md

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!