typescript
Installation
SKILL.md
TypeScript Conventions
Naming Conventions
| Item | Style | Example |
|---|---|---|
| Types, interfaces, enums | PascalCase |
UserProfile, HttpStatus |
| Functions, variables, methods | camelCase |
getUserById, isActive |
| Constants | UPPER_CASE |
MAX_RETRIES, API_BASE_URL |
| File names (modules) | camelCase or kebab-case |
userService.ts, user-service.ts — follow project convention |
| Generic type parameters | Single uppercase or short PascalCase |
T, K, V, TResult |
- No
Iprefix on interfaces —UsernotIUser. TypeScript makes no runtime distinction - No
Tprefix on types —PropsnotTProps - Boolean names: Use
is,has,can,shouldprefixes —isActive,hasPermission