What TypeScript's satisfies actually buys you
2026-10-29
satisfies validates a value against a type without widening it. That sounds like a footnote until the first time a config object keeps its literal keys.
const routes = { home: "/", post: "/posts/:slug" } satisfies Record<string, `/${string}`>;
routes.post // still "/posts/:slug", not string
Which means autocomplete and the template-literal check both survive. I now reach for it before as const, which froze more than I wanted.