-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
The latest published build breaks TypeScript apps #1035
Comments
Recommendation from @NullVoxPopuli
|
Related:
A work around:
In package.json |
Ahh change management in typescript is frustrating. I was confident in releasing after this upgrade because we run type-checking in CI (for TS 5.0, 5.1, 5.2, 5.3). This issue does not fail those typechecks 😢 Any ideas how I can add regression coverage for this? The Do I need to import or use the |
Rollback released in |
add type-checking to the scenario testing
this is what ember-resources does: https://github.com/NullVoxPopuli/ember-resources/blob/f0a8b8506257add362e84dad49af8ec9218c8a66/ember-resources/src/core/function-based/manager.ts#L27-L37
you could possible cast to any or drop support for ember versions that don't have the Owner type. |
Made a tool to help out in the future: https://github.com/NullVoxPopuli/fix-bad-declaration-output |
Updating from 8.3.1 to 8.4.0 breaks linting in our app as it starts thinking that
getOwner
returnsany
.The root cause of this are these comments added to published type declarations:
https://www.npmjs.com/package/ember-file-upload/v/8.4.0?activeTab=code
Here is the relevant ticket in TypeScript repo:
microsoft/TypeScript#56571
Not sure what the addon authors should do about it.
///
comments before publishing?I saw a discussion in Discord in
dev-typescript
channel but it hasn't resolved into any recommendations so far.The text was updated successfully, but these errors were encountered: