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
Allow variadic dependencies as well as an array #27
Comments
Oh, very interesting. The issue is that all the values in the array have to have the same type? |
Exactly (or you can specify a union type, but not the order they come in). If they are separate arguments they can be individually typed. This is how Rx gets such good typing in Typescript for functions such as |
Ok, thanks. I don't see why we shouldn't do this. @faassen? |
@ccapndave @ellbee Sounds interesting to me.
|
Variadic dependencies added to the 1.0.0 release |
As well as the current system of
createSelector([a, b, c], (a, b, c) => ...)
it would be great if it would also be possible to docreateSelector(a, b, c, (a, b, c) => ...)
This would allow us to implement robust and strictly typed Typescript definitions on
createSelector
.The text was updated successfully, but these errors were encountered: