Incorrect error when assigning to omitted and extended record type #27883
Labels
Bug
A bug in TypeScript
Domain: Conditional Types
The issue relates to conditional types
Domain: Mapped Types
The issue relates to mapped types
Fixed
A PR has been merged for this issue
TypeScript Version:
[email protected]
[email protected]
[email protected]
Search Terms:
Code
Expected behavior:
No error.
Actual behavior:
Removing the
{ foo: string } &
works.Removing the
Omit
works.Removing the
P
and usingBaa
directly works.Playground Link:
https://agentcooper.github.io/typescript-play/?ts=2.9.1#code/C4TwDgpgBAQghnKBeKBvKcBcUB2BXAWwCMIAnAGiiIH5t9iyoBfAbgChRIoB5AgS2AAeACqUA0gD5kUAAp8AxgGsRlAKIAPeQBs8AEwiDFEEAHsAZlFFRJE9mzN4c84HxM4oZkycEyoEdcAQOLoAzrAIEgAUAJRobFAJUPJuIcAeXtjonibYqaR8OADmzFAAZDz8QjKUAORENVIo+FpaGGFwOCDsiUkpaWCkJmAh2PCIKNnsTGxAA
Related Issues:
The text was updated successfully, but these errors were encountered: