We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Deep union no longer work
Playground link with relevant code
type G = { props: ( { a: { foo: 1 }} & { a: { bar: 2 }} )} & { props: { a: { qux: 3}}} const g: G = { props: { a: { foo: 1, bar: 2, qux: 3, // gives error in 4.9, not in 4.8 } } }
qux gives error:
Object literal may only specify known properties
Continues working as it had before
The text was updated successfully, but these errors were encountered:
This one still works:
type G = { props: { a: { foo: 1 }}} & { props: { a: { qux: 3}}} & { props: { a: { bar: 2 }}}
Sorry, something went wrong.
intersectionState
Tracking at #52252 since the PR to fix that one also fixes this one
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
Successfully merging a pull request may close this issue.
Bug Report
🔎 Search Terms
Deep union no longer work
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
qux gives error:
🙂 Expected behavior
Continues working as it had before
The text was updated successfully, but these errors were encountered: