fix-types

Diagnose and resolve TypeScript type errors in the ESO Log Aggregator project.

2|Updated Aug 18, 2025
One-click install
npx skills add https://github.com/ESO-Toolkit/eso-toolkit --skill fix-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-types
Source: https://github.com/ESO-Toolkit/eso-toolkit/tree/main/.github/skills/fix-types
Command: npx skills add https://github.com/ESO-Toolkit/eso-toolkit --skill fix-types

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers quickly diagnose and fix common TypeScript type errors, ensuring code quality and preventing build failures.

Core Features & Use Cases

  • Error Diagnosis: Identifies specific TypeScript error messages like module not found, type mismatches, and missing declarations.
  • Automated Fixes: Provides concrete steps and code examples to resolve issues, including updating path aliases, defining interfaces, and regenerating types.
  • Use Case: When your npm run typecheck command fails with a "Type 'X' is not assignable to type 'Y'" error, this Skill guides you through creating the correct interface or type assertion.

Quick Start

Run npm run typecheck to identify TypeScript errors and then follow the guidance in this skill to fix them.

Frequently Asked Questions about fix-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TypeScript type assignability errors when my build fails?

Resolve TypeScript type errors by running `npm run typecheck` to identify failures. Then follow guided steps to update path aliases, define missing interfaces, or regenerate stale types from schema changes to restore build integrity.

Why does TypeScript report module resolution failures and missing declaration files?

Fix module resolution failures and missing declaration files by updating path aliases in your TypeScript configuration and ensuring all required declaration files are present or properly generated for your dependencies.

What is the best way to resolve stale generated types after schema changes?

Regenerate stale types from the updated schema to resolve type assignability conflicts. This updates your TypeScript interfaces to match current data structures, preventing build failures and ensuring type safety.

How do I handle circular dependency issues in TypeScript?

Diagnose circular dependency issues by tracing the import chain and refactoring shared logic into separate modules. This resolves the type errors while maintaining type safety and adhering to project standards.