router-core/type-safety

Official

Ensure full type inference across TanStack Router

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TanStack Router users often struggle with maintaining strict type safety across routes, loaders, and context. This Skill enforces full type inference and prevents pervasive casts, ensuring consistent, reliable typings throughout the app.

Core Features & Use Cases

  • Fully inferred types for route params, search params, and loader data without manual annotations.
  • Clear guidance on Register pattern, from narrowing on hooks, and use of type utilities.
  • Real-world guidance for TS performance and safe coupling with router-core features.

Quick Start

Follow the type-safety guidelines to register router types once and benefit from fully typed hooks and route data across the codebase.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: router-core/type-safety
Download link: https://github.com/TanStack/router/archive/main.zip#router-core-type-safety

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.