TanStack Types

Installation
SKILL.md

TanStack Query Type Safety Patterns

This skill provides guidance for achieving type safety in TanStack Query, covering queryOptions, runtime validation with Zod, and TypeScript best practices based on TKDodo's recommendations.

Core Principle: Trust in Types

The foundation of type safety is trust in type definitions. Without trust, TypeScript becomes just a linter that can be silenced.

"To truly leverage the power of TypeScript, there is one thing that you need above all: Trust."

The Anti-Pattern: Manual Generics

Avoid passing type parameters directly to useQuery:

Installs
Repository
smithery/ai
First Seen
TanStack Types — smithery/ai