-
Notifications
You must be signed in to change notification settings - Fork 396
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
fix: adjust type to remove need for @types/lodash
#362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for the contribution! Could we add the dependency on @types/lodash
instead? Otherwise, without a way to add a test for this, this is likely to silently regress in the future (eg. next time someone refactors this function, and chooses to remove the unnecessary type annotation).
@bcherny ugh that's a very good point 🤦♂️ A possible way to guard against that could be to export the |
b7ac52b
to
ff937b6
Compare
(btw I've made some PRs to update the browser version to the latest major 🙂) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating!
Published 10.1.3 |
I am seeing this error with versions >= 15 Versions below 15 work fine |
Currently TS errors for this package if
@types/lodash
is not installed:I actually thought this was because of #361 but it's not - not sure why it didn't error in the past on the same project.
Originally I was going to add
@types/lodash
todependencies
, but realised I could explicitly type the export to make it not needed.