Skip to content

Fixed an issue with mapped property symbol not displaying added | undefined when its origin symbol was optional - #64100

Draft
Mateusz Burzyński (Andarist) wants to merge 5 commits into
microsoft:mainfrom
Andarist:fix/mapped-prop-undefined-display-go
Draft

Fixed an issue with mapped property symbol not displaying added | undefined when its origin symbol was optional#64100
Mateusz Burzyński (Andarist) wants to merge 5 commits into
microsoft:mainfrom
Andarist:fix/mapped-prop-undefined-display-go

Conversation

@Andarist

@Andarist Mateusz Burzyński (Andarist) commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

recreates #59957
fixes #59948
fixes #60411
fixes #62325

Copilot AI balanced review requested due to automatic review settings August 30, 2026 17:24
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes mapped-property quick info so explicit undefined remains visible after optionality transformations.

Changes:

  • Updates implicit-undefined detection for mapped properties.
  • Adds six fourslash regression tests covering optional, required, nested, and exact-optional cases.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsc/internal/checker/emitresolver.go Updates mapped-property serialization logic.
tsc/internal/fourslash/tests/quickInfoMappedTypeOptionalPropertyExplicitUndefined_test.go Tests explicit undefined preservation.
tsc/internal/fourslash/tests/quickInfoMappedPropertyUnionUndefined1_test.go Tests exact optional properties.
tsc/internal/fourslash/tests/quickInfoMappedPropertyUnionUndefined2_test.go Tests default optional semantics.
tsc/internal/fourslash/tests/quickInfoMappedPropertyUnionUndefined3_test.go Tests nested mapped transformations.
tsc/internal/fourslash/tests/quickInfoMappedPropertyUnionUndefined4_test.go Tests required-to-undefined mapping.
tsc/internal/fourslash/tests/quickInfoMappedPropertyUnionUndefined5_test.go Covers issue #62325.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread tsc/internal/checker/emitresolver.go Outdated
Comment thread tsc/internal/checker/emitresolver.go Outdated
@Andarist
Mateusz Burzyński (Andarist) marked this pull request as draft August 30, 2026 19:22
@typescript-automation typescript-automation Bot added the For Backlog Bug PRs that fix a backlog bug label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

2 participants