question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`RouteInfo` type is missing in `@sapui5/ts-types-esm` but present in `@types/openui5`

See original GitHub issue

sorry if this is the wrong place, not really sure where to raise this

in @types/openui5 the type is present in the "sap/ui/core/routing/Router" module

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
akudevcommented, Nov 27, 2021

@DetachHead : yeah, I agree that’s not so easy to understand and we need to explain the packages better. But at least they are not random: basically we have two dimension where we need to provide something different:

  1. for OpenUI5 we need to provide a reduced package compared to SAPUI5 because it has less controls
  2. the old packages supported using global objects like “sap”, while in the future we want to encourage using ES modules to load dependencies. For certain stakeholders (WebIDE) we still need to provide the old packages, though.

Those two dimensions are multiplied out, so we get four packages - the ones with ts-types in their name. Two for OpenUI5, two for SAPUI5. Two for globals, two for ES modules (those ending with -esm). We cannot drop any of them, but I’ll see how and where we can document them better and we should also make clearer that the non-esm ones are… less supported.

Then, we also have one more package: @types/openui5. The content equals @openui5/ts-types-esm, but the consumption is easier because TypeScript automatically finds packages in the @types namespace.

1reaction
akudevcommented, Dec 3, 2021

Wasn’t tracked, Peter wanted to take care of it. I opened https://github.com/SAP/ui5-typescript/issues/320 for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found