2026.09.04ΒΆ
TypeScript now annotates a top-level homogeneous map rendered as an object literal with
Record<string, V>under the defaultNEVERandSAFEvariable type hint modes, so the value can be indexed with astringkey under--strict.tscinfers a bare object literal as a closed type with no index signature. Dicts whose values differ in type and one-entry dicts stay inferred, and theMAPdict format is unaffected.TypeScript golden files are now type-checked under
tsc --strictwith a consumer probe appended after each declaration, so a literal that compiles on its own but cannot be indexed, looked up or iterated the way its shape invites fails CI.