Type Safety

Full type inference philosophy (never cast, never annotate inferred values), Register module declaration, from narrowing on hooks and Link, strict:false for shared components, getRouteApi for code-split typed access, addChildren with object syntax for TS perf, LinkProps and ValidateLinkOptions type utilities, as const satisfies pattern.

TanStack ce92046 14.7 KB Updated

File contents

TanStack/router/tree/main/packages/router-core/skills/router-core/type-safety commit ce9204677e

Frequently asked questions

npx skillmds@latest add tanstack/type-safety