TypeScript's satisfies Operator: Validate Your Configs Without Losing Their Types
Type annotations validate your config objects but widen away their literal types. TypeScript 4.9's satisfies operator gives you real compile-time validation while keeping narrow inferred types.