Broken type of on
function when created outside of createReducer
factory function
#3576
Closed
1 of 2 tasks
Labels
on
function when created outside of createReducer
factory function
#3576
Which @ngrx/* package(s) are the source of the bug?
store
Minimal reproduction of the bug/regression with instructions
(Discovered as a result of the attempted NgRx merge into g3)
Since #2982 when
on
function was created outside of thecreateReducer
, theState
type is being incorrectly inferred asunknown
.E.g. the following code:
would produce the following error:
Minimal reproduction of the bug/regression with instructions
on
function should correctly infer theState
type that's specified explicitly in theOnReducer
function.Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
NgRx: latest 14.3.1
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: