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
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
patchState(store, (state) => ({
'field not in type': ":(" //this is allowed
})),
Expected behavior
It should complain if the field is not in the state's type.
The version of patchState that doesn't take a function but instead an object as 2nd param complains as expected
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
ngrx 19, angular 19, node 21, macos
Other information
No response
I would be willing to submit a PR to fix this issue
Yes
No
The text was updated successfully, but these errors were encountered:
EthanSK
changed the title
patchStatev version that takes a function does not enforce type safety
patchState overload that takes a function does not enforce type safety
Jan 11, 2025
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
Expected behavior
It should complain if the field is not in the state's type.
The version of patchState that doesn't take a function but instead an object as 2nd param complains as expected
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
ngrx 19, angular 19, node 21, macos
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: