Skip to content

chore: fix type definition for unbindElement#4425

Open
wridgeu wants to merge 1 commit intoUI5:masterfrom
wridgeu:unbindElement-typefix
Open

chore: fix type definition for unbindElement#4425
wridgeu wants to merge 1 commit intoUI5:masterfrom
wridgeu:unbindElement-typefix

Conversation

@wridgeu
Copy link
Copy Markdown
Contributor

@wridgeu wridgeu commented Apr 4, 2026

unbindElement is missing the proper JSDoc for declaring it as optional making it a bit cumbersome to use in TypeScript.

The internals behind it (the original impl. of ManagedObject), already has this properly marked as optional.

I did not want to also adjust/align the JSDoc descriptions writing style (that'd just be nitting the style). I also did not verify 'all' other JSDocs. This particular one was just one I stumbled over during work.

When this change lands on new npm types packages, it'll help people using TypeScript.

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