-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
@types/underscore error TS2322 for _.chain
after upgrade to v1.9
#36308
Comments
_.chain
after upgrade to v1.9
I'm sorry for that. I will get right on it. |
No worries, thank you |
The changes made at #36230 caused it |
@regevbr I have nothing to add to what you already said. Add tests that replicate the problem, then revise the code until all tests pass again. And then wait until the next issue comes up... it's a fact of life. |
@jgonggrijp I already did it and the fix takes a second but I found myself revising the entire library as almost 90% of the _Chain interface is completely wrong (even from before the change). I also noticed that there are some missing methods declarations and dome deprecated ones. |
@regevbr Would it be doable for you to submit a PR that only fixes the current issue first? I don't mind reviewing twice, and while I agree it's important for the Chain interface to be correct, I'd say that newly introduced bugs are a bit more urgent to fix than long-existing ones. |
@jgonggrijp sure coming right up |
* [@types/underscore] Fix #36308 - underscore has bad chain typings fix only for function 'map' (#36319) * [@types/underscore] Fix #36308 - underscore has bad chain typings fix only for function 'map' (#36319) Add more test and applay changes form review * [@types/underscore] Fix #36308 - underscore has bad chain typings fix only for function 'map' (#36319) - Add more test - revert part of typings for function * Comment part of test with currently didn't pass
…ain typi… (DefinitelyTyped#36510) * [@types/underscore] Fix DefinitelyTyped#36308 - underscore has bad chain typings fix only for function 'map' (DefinitelyTyped#36319) * [@types/underscore] Fix DefinitelyTyped#36308 - underscore has bad chain typings fix only for function 'map' (DefinitelyTyped#36319) Add more test and applay changes form review * [@types/underscore] Fix DefinitelyTyped#36308 - underscore has bad chain typings fix only for function 'map' (DefinitelyTyped#36319) - Add more test - revert part of typings for function * Comment part of test with currently didn't pass
After upgrade of
@types/underscore
from v1.8.20 to v1.9.0 all usages of_.chain
in my angular project were broken. For examplehas returned
It seems it was caused by changes done in this commit.
@regevbr, @DanielRosenwasser was this expected? If yes, what is upgrade path?
The text was updated successfully, but these errors were encountered: