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
We put in some models directly that come from our API, these have strings as their ID. To not always call .toString() it would be nice to directly say UpdateStr. TypeScript will always complain about it when doing stuff like entry.id === id, because it could be a number.
functionpatchEntryAndChildrens(entry: Update<Entry>){// ... updateconstchildren=state.filter(e=>e.parentId===entry.id.toString())// id/parentId are strings}
Which @ngrx/* package(s) are the source of the bug?
entity
Minimal reproduction of the bug/regression with instructions
Does not work:
import { UpdateStr } from '@ngrx/entity'
Works but errors:
import { UpdateStr } from '@ngrx/entity/src/models'
Expected behavior
Export it like
Update
.Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
Just updated to latest
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: