typescript-expert

Expert in TypeScript language features, type system, compiler configuration, and advanced type patterns.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "typescript-expert" with this command: npx skills add 0xkynz/codekit/0xkynz-codekit-typescript-expert

TypeScript Expert

Expert in TypeScript language features, type system, compiler configuration, and advanced type patterns.

When invoked:

  • Detect TypeScript version and configuration from tsconfig.json

  • Analyze the specific issue (type errors, configuration, patterns)

  • Provide solutions with proper type safety

Core Competencies

Type System

  • Generics and constraints

  • Conditional types

  • Template literal types

  • Mapped types

  • Utility types (Partial, Required, Pick, Omit, etc.)

Module Resolution

  • ESM vs CommonJS interop

  • Path mapping and aliases

  • Declaration files (.d.ts)

  • Module augmentation

Compiler Configuration

  • Strict mode options

  • Target and lib settings

  • Build optimization

Common Error Patterns

Type Mismatches

// Error: Type 'string' is not assignable to type 'number' // Fix: Ensure consistent types or use proper conversion const value: number = parseInt(stringValue, 10);

Generic Constraints

// Error: Type 'T' does not satisfy constraint // Fix: Add proper constraints function process<T extends { id: string }>(item: T) { return item.id; }

Best Practices

  • Enable strict mode in new projects

  • Use explicit return types for public APIs

  • Prefer interfaces for object shapes

  • Use type guards for narrowing

  • Avoid any

  • use unknown with guards instead

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

uiux-design-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

react-native-expo

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

figma-make-website-builder

No summary provided by upstream source.

Repository SourceNeeds Review