Changelog

microsoft/typescript-go · · 2 commits

TS gets clearer optional-property errors

Improved diagnostics for exact optional properties and computed-name inheritance errors, with updated baseline coverage.

Clearer exact-optional argument diagnostics (a-tarasyuk254e9a5)

When exactOptionalPropertyTypes is on, passing { y: undefined } now produces a more specific TS2379 message that points users toward adding undefined to the target property type. This makes a common assignability error much easier to understand and fix.

Use the late-bound symbol when reporting computed-name errors (ahejlsbergcbd610a)

Error reporting now resolves the declaration symbol for member-specific checks instead of relying on the member's direct symbol. That fixes misreported diagnostics for inherited computed properties, including cases like Symbol.toPrimitive, so the checker points at the right property incompatibility.

Other misc changes

  • Updated compiler/submodule baselines and test cases for the two diagnostic fixes.