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

createSelector with 4 arguments throws typescript error #73

Closed
Daskus1 opened this issue Jul 12, 2017 · 1 comment
Closed

createSelector with 4 arguments throws typescript error #73

Daskus1 opened this issue Jul 12, 2017 · 1 comment

Comments

@Daskus1
Copy link
Contributor

Daskus1 commented Jul 12, 2017

I have a selector with 4 arguments that looks something like this:

export const getCurrentHourComposed = createSelector(getCurrentHour, getWeekHours, getAllEvents, getAllSchoolyears, (currentHour, hours, events, schoolyears) => {/*...*/}

My IDE is throwing the following error:

Argument of type '(currentHour: any, hours: any, events: any, schoolyears: any) => IEvent' is not assignable to parameter of type '(s1: any, s2: any, s3: any) => IEvent'.
@brandonroberts
Copy link
Member

Closed via #74

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

No branches or pull requests

2 participants