
Typescript Advanced Types
This one covers the deep end of TypeScript's type system: generics with constraints, conditional types with infer, mapped types with key remapping, and template literal types for string manipulation. You'll want this when you're building type-safe event emitters, API clients where the types follow your endpoint structure, or any time you need the compiler to catch mistakes that would otherwise show up at runtime. The patterns here are what separate a codebase that just uses TypeScript from one that actually leverages it. Fair warning, some of this gets abstract fast, especially the nested conditional types and recursive path builders, but that's the point. If you're still manually writing type guards everywhere, this will change how you work.
- skills.sh installs
- 164
- GitHub stars
- 234
- last updated
- Jun 3, 2026
Install
$ npx -y skills add flora131/atomic --skill typescript-advanced-types --agent claude-codeInstalls into .claude/skills of the current project.
Files
TypeScript Advanced Types
Comprehensive guidance for mastering TypeScript's advanced type system including generics, conditional types, mapped types, template literal types, and utility types for building robust, type-safe applications.
When to Use This Skill
- Building type-safe libraries or frameworks
- Creating reusable generic components
- Implementing complex type inference logic
- Designing type-safe API clients
- Building form validation systems
- Creating strongly-typed configuration objects
- Implementing type-safe state management
- Migrating JavaScript codebases to TypeScript
Core Concepts
1. Generics
Purpose: Create reusable, type-flexible components while maintaining type safety.
Basic Generic Function:
function identity<T>(value: T): T {
return value;
}
const num = identity<number>(42); // Type: number
const str = identity<string>("hello"); // Type: string
const auto = identity(true); // Type inferred: boolean
Generic Constraints:
interface HasLength {
length: number;
}
function logLength<T extends HasLength>(item: T): T {
console.log(item.length);
return item;
}
Sponsors
Details
- Repository
- github.com/flora131/atomic
- First seen
- Jun 3, 2026
More from flora131/atomic
All 39- Advanced Evaluation163
- Opentui163
- Evaluation162
- Hosted Agents162
- Multi Agent Patterns162
- Typescript Expert161
- Typescript React Reviewer160
- Workflow Creator146
- Ado Commit116
- Ado Create Pr115
- Research Codebase182
- Explain Code176
- Gh Commit172
- Prompt Engineer171
- Gh Create Pr170
- Context Compression168
- Create Spec168
- Sl Commit168
- Sl Submit Diff168
- Bun166
- Context Optimization166
- Docx166
- Impeccable166
- Init166