javascript
Installation
SKILL.md
JavaScript/TypeScript Domain Skill
TypeScript Essentials
Utility types (use these instead of manual definitions):
| Type | Effect |
|---|---|
Pick<T, K> |
Subset of properties |
Omit<T, K> |
Exclude properties |
Partial<T> |
All optional |
Required<T> |
All required |
Record<K, V> |
Key-value map |
ReturnType<typeof fn> |
Extract return type |
Awaited<Promise<T>> |
Unwrap promise type |
Extract<T, U> / Exclude<T, U> |
Filter union members |