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

Support array argument for createSelector. #148

Merged
merged 2 commits into from
Jul 6, 2016

Conversation

threehams
Copy link
Collaborator

Sadly, I can't find a way to support either format without duplicating the same approach taken for the multiple-argument signature. The definition file is now 10X bigger than the library itself. :(

Fix some eslint complaints.
Use trailing commas consistently.

It's possible there's a way to do this with ...args: Selector<>[], but I can't figure out how to preserve the selector / combiner return/argument pairing with that approach. Changes to Typescript 2.1 (supporting object spread) might open up some possibilities here.

@coveralls
Copy link

coveralls commented Jul 5, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 8b3dd05 on threehams:issue/136 into b01c951 on reactjs:3.0.0.

@codecov-io
Copy link

codecov-io commented Jul 5, 2016

Current coverage is 100%

Merging #148 into 3.0.0 will not change coverage

@@           3.0.0   #148   diff @@
===================================
  Files          1      1          
  Lines         13     13          
  Methods        0      0          
  Messages       0      0          
  Branches       0      0          
===================================
  Hits          13     13          
  Misses         0      0          
  Partials       0      0          

Powered by Codecov. Last updated by b01c951...8b3dd05

@threehams threehams merged commit 0f9b36e into reduxjs:3.0.0 Jul 6, 2016
@threehams threehams deleted the issue/136 branch July 6, 2016 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants