Typescript Conventions

TypeScript coding conventions for strict, type-safe projects. Use when: (1) writing or reviewing TypeScript code, (2) choosing between `any` and `unknown`, (3) structuring imports with verbatimModuleSyntax, (4) defining types, interfaces, unions, or generics, (5) naming functions, booleans, queries, and commands, (6) handling errors with guard clauses and early returns, (7) narrowing types with guards and discriminated unions, or (8) avoiding common anti-patterns like primitive obsession, magic strings, and premature abstraction.

jgamaraalv 7cc5f29 6.6 KB Updated

File contents

jgamaraalv/ts-dev-kit/tree/main/skills/typescript-conventions commit 7cc5f290f6

Frequently asked questions

npx skillmds@latest add jgamaraalv/typescript-conventions