You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ids (#1995)
Allow the `update` method of ChangeSetItemFactory to accept entities with numerical IDs.
This seems to be the intent, as the `Update<T>` it accepts can use either a string or a number for the ID, while the `update` method only allows for string IDs
Closes#1988
…ids (ngrx#1995)
Allow the `update` method of ChangeSetItemFactory to accept entities with numerical IDs.
This seems to be the intent, as the `Update<T>` it accepts can use either a string or a number for the ID, while the `update` method only allows for string IDs
Closesngrx#1988
Minimal reproduction of the bug/regression with instructions:
https://stackblitz.com/edit/ngrx-seed-data-update-bug
See the type error in the
example()
function, compared with an entity with a String IDExpected behavior:
ChangeSetItemFactory.update should allow for updating entities with a Number type ID
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):
NgRx: 8.0.1
Angular: 8.0.2
Node: 10.15.3
Other information:
Although they type
Update<T>
allows forUpdateStr<T> | UpdateNum<T>
, the update function forcesT
to extend{id: string}
onlyI would be willing to submit a PR to fix this issue
[X] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered: