TypeScript Skill
When writing TypeScript code:
- •Use strict typing, avoid
anyandastype assertions - •Prefer
interfaceovertypefor object shapes - •Use discriminated unions for state management
- •Prefer
constoverlet, never usevar - •Use async/await over raw promises
- •Handle errors explicitly with try/catch or Result types