-
Notifications
You must be signed in to change notification settings - Fork 29
@sapui5/ts-types-esm
- third party types (three, jquery, qunit) should be listed as dependencies in package.json
#314
New issue
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
Comments
Hi, thanks for the suggestion! "dependencies": {
"@types/jquery": "3.6.0",
"@types/qunit": "2.3.2",
"@types/three": "0.125.3"
} for SAPUI5 and "dependencies": {
"@types/jquery": "3.6.0",
"@types/qunit": "2.3.2"
} for OpenUI5. That's only ts-types-esm so far, I'll check the legacy types later. |
Unfortunately too late for 1.97, which has just been released. -> 1.98 |
@akudev didn't we explicitly decide against such dependencies as we didn't want to enforce a certain ts-wrapper? Esp. for jQuery, we saw this as an issue. |
@codeworrior perhaps or maybe just document somewhere the "recommended" types package for ones like jquery where there could be multiple options? |
@codeworrior did we? Hm. Then can we revisit in favor of easier usage? @DetachHead What to install for jQuery is documented in various places, e.g. in the step-by-step setup guide. But a) that's one step more to do and b) from the fact that the mentioned versions are already out of sync with the ones bundled in UI5, one can see that it's not a good idea. So I would love to find an automatic solution. I'd be satisfied if one could actively opt OUT of using the default jQuery types in the rare cases where this is desired. This works by setting the "compilerOptions": {
"types": [ "@openui5/ts-types-esm" ]
} What do you think @codeworrior ? Interestingly, DefinitelyTyped automatically adds the qunit and jquery dependencies to package.json (this file is not added by us). possibly triggered by them being referenced in index.d.ts. But DefinitelyTyped uses
|
@DetachHead Not sure whether this was mentioned before, but with But regardless, we have decided to add the dependencies. The change has now been submitted (in an internal repo for build stuff) and will be in effect with version 1.100, as the codesplit for 1.99 has already happened. SAPUI5 types have then the following: Thanks! |
otherwise you get all these compile errors, then you have to track down the missing dependency manually:
The text was updated successfully, but these errors were encountered: