-
Notifications
You must be signed in to change notification settings - Fork 12.8k
3.9 Regression Merge Types #38571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is expected due to a breaking change #37195 |
Are you sure @x87 ? The NON optional _id property is causing the problem. |
@micheleangioni the error says:
if you remove the |
This is the correct behavior. At its initialization, |
Ok, thanks @RyanCavanaugh for pointing out is was due to 'otherKey' :) |
TypeScript Version: 3.9.2
Search Terms: Regression, merge types
Code
Expected behavior: No error (3.8x is fine)
Actual behavior: Definition of
const convertedData
gives errorPlayground Link: https://www.typescriptlang.org/play/?ssl=20&ssc=35&pln=20&pc=51#code/C4TwDgpgBAshBOBzCAeAKgGigZQHxQF4oB5AWwEth0sBRAD2HgEMBjKgawhAHsAzKTFE49+efADIcAbgBQM0JCgB1SgAsAcgFdSAIwQBJACaEoAbxlQoAfXKGAXFAB22vfAwWo3YKoQBpLgD8Ds66CO4AvrLy4NAq3tiM5I6IRibmljb2UADOicnull4+8P4gQTl5iBFRvJqObOTcjlAsTQBuCMBo3AnwSSmG6FAQDBCOhtnKalqh8Ea4ABSGTMBMDmgAlA5wSKiCcaq9-fNmHq2OuS3tnRCGACIra7AIyNRT8ZUnROmWUAB0AOWqwKv0yDiBTD+mT+wB6lQWGxBkTklnI-CWjz+RT8XA2p1+V0cHXgwFuD1WWO8OJAJghlOKpRhcL6yQRsks4RRUHgEGAmngzXOxNJ90esk5QA
Related Issues: Maybe #38460
The text was updated successfully, but these errors were encountered: