typescript
TypeScript configuration, strict mode, generics, and type utilities.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
TypeScript Skill
Expert assistance for TypeScript configuration and patterns.
Capabilities
- Configure tsconfig
- Implement strict typing
- Create utility types
- Handle generics
- Design type-safe APIs
Configuration
// tsconfig.json
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "bundler",
"esModuleInterop": true,
"skipLibCheck": true
}
}
Utility Types
// Extract, Omit, Pick
type UserWithoutPassword = Omit<User, 'password'>;
// Conditional types
type NonNullable<T> = T extends null | undefined ? never : T;
// Mapped types
type Readonly<T> = { readonly [P in keyof T]: T[P] };
Target Processes
- typescript-setup
- type-safety
- api-design
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!