-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
refactor(store) used variadic tuple types for createSelector #2905
refactor(store) used variadic tuple types for createSelector #2905
Conversation
Preview docs changes for 9c16f81 at https://previews.ngrx.io/pr2905-9c16f81e/ |
opening as a draft to request help |
Some notes:
|
c560e68
to
484b40c
Compare
export function createSelector< | ||
State, | ||
S extends SelectorWithProps<any, any, any>[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old definition of selectors with props specified that all input selectors had those props, but that doesn't quite make sense to me. Couldn't they be any arbitrary selectors, and the Props
are merely inferred from the projector?
113095f
to
9c16f81
Compare
9c16f81
to
f1ba3ba
Compare
Waiting on Angular to support TS 4.2 before continuing |
Let's revisit this after TS 4.2 lands in Angular |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Types were manually created for set numbers of arguments.
Partially completes #2715
What is the new behavior?
createSelector
stays strongly typed for an infinite number of arguments.Does this PR introduce a breaking change?