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
[micro-dash] Reduce typings incorrect (I think) #20
Comments
Thanks you for the ticket. I'm glad the library is interesting/useful enough for you to care about its typings :) I see what you mean, it does look like that typing is wrong. Sorry about that! Also, please note that this the old repo for |
It is? This is where npm leads :/ Sorry, where is the new one? |
The old, deprecated package on npm is micro-dash, and this ticket was originally created over at it's repo. You'll see the deprecation notice at that link. The new package is @s-libs/micro-dash, and it's repo is right here. You created this ticket at the old repo, and I transferred it over here to the new one. Sorry for the confusion. I moved all my open source libraries to this monorepo to simplify my life. I moved the NPM packages to sync up their version numbers, to make it easy to see/understand which versions of all the libraries go together. |
This should be fixed up in the next release. Thank you for the report! |
And the fix is now generally available in release 11.2.0 |
Thank you @ersimont! Long live micro-dash. |
PS, in my testing it actually does much better. If TS was able to infer the key names for a given type, each object in the collection will have full intellisense in the callback (VSCode) |
Haha. Thanks!
I'm surprised!
|
I'm sorry, I was mistaken.
|
key: keyof E
should bekey: keyof ObjectWith<E>
The text was updated successfully, but these errors were encountered: