Skip to content
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

As of TypeScript 3.1.1, types erroneously fall back to arity-agnostic createSelector signature when used with arrays #420

Closed
nickmccurdy opened this issue Aug 10, 2019 · 0 comments · Fixed by #486
Milestone

Comments

@nickmccurdy
Copy link
Contributor

nickmccurdy commented Aug 10, 2019

As far as I'm aware, this breaks any usage of Reselect's array signature with TypeScript 3.1.1+. I'm not sure what causes this yet, but I'm hoping that #366 will also fix this by using a mapped generic rest tuple. Older TypeScript versions work fine, but now that 3.1.1 is already 10 months old it seems like this may be a common issue.

Discussion: https://twitter.com/jessidhia/status/1159660672000487424
Reproduction with failing type tests: https://travis-ci.com/nickmccurdy/reselect/jobs/224127648#L1087-L1115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants