-
Notifications
You must be signed in to change notification settings - Fork 0
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
type casting necessary due to insufficient types on ngrx #2
Labels
enhancement
New feature or request
Comments
3 tasks
alex-okrushko
pushed a commit
to ngrx/platform
that referenced
this issue
Jan 6, 2020
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
incredibles007
pushed a commit
to incredibles007/angular-platform-ngrx
that referenced
this issue
Nov 22, 2021
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
Morita0711
added a commit
to Morita0711/e-commerce-angular
that referenced
this issue
Jul 3, 2022
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
HoneyRole
added a commit
to HoneyRole/angular-ngrx
that referenced
this issue
Nov 21, 2022
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
bodyduardU
pushed a commit
to bodyduardU/platform
that referenced
this issue
Dec 5, 2022
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
incredibles007
pushed a commit
to incredibles007/angular-platform-ngrx
that referenced
this issue
Dec 14, 2023
* fix(store): replace insufficient type Creator with TypedCreator createAction returns incorrect type as neither Creator not it's return type contains `type`. Proper return type is ActionCreator with inner typed creator Closes meeroslav/ng-helpers#2 * fix(store): revert TypedCreator in favor of upcoming NotAllowedCheck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scope: ngrx helpers
ActionCreator
extends the innerCreator
type by addingTypedAction
, however actual return type should be typed Creator - the function that returns original response hydrated withtype
.This forces us to cast ActionCreator calls to Actions (and Observable)
The text was updated successfully, but these errors were encountered: