Skip to content

fix: include BindingElement in ExportedDeclarations - #1686

Open
shabeeth2 wants to merge 1 commit into
dsherret:latestfrom
shabeeth2:review/c12-20261004
Open

shabeeth2 wants to merge 1 commit into
dsherret:latestfrom
shabeeth2:review/c12-20261004

Conversation

@shabeeth2

@shabeeth2 shabeeth2 commented Oct 4, 2026 •

Copy link
Copy Markdown

Summary

Add BindingElement to the public exported-declaration union to describe nodes already returned for destructured exports. Regenerate declarations normally and cover object, renamed property, array, rest and nested destructuring, including union assignability. The runtime algorithm is unchanged.

Related issue

Related: #1499.

Validation

Original union probe produced TS2322; the updated probe had zero diagnostics. Focused tests: 18 passed. Declaration generation, project/declaration compile checks and recursive code verification passed. Recursive CI: 5,396 passed, two existing pending tests.

Compatibility: downstream exhaustive switches or never checks may need a BindingElement case after this public union widening.

@shabeeth2
shabeeth2 marked this pull request as ready for review October 4, 2026 16:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant