Skip to content

chore: fix type definition for addRoute#4415

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

chore: fix type definition for addRoute#4415
wridgeu wants to merge 1 commit intoUI5:masterfrom
wridgeu:addroute-typefix

Conversation

@wridgeu
Copy link
Contributor

@wridgeu wridgeu commented Mar 22, 2026

I think addRoute is missing the proper JSDoc for declaring it as optional making it a bit cumbersome to use this in TypeScript. The internals behind it, especially the route itself, already has this properly marked as optional.

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

@cla-assistant
Copy link

cla-assistant bot commented Mar 22, 2026

CLA assistant check
All committers have signed the CLA.

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