Answer by Yas Ikeda for Get the type from a - "createAction" function
I exactly needed it when I wanted to share some code inside my effect and figured it out.Answer to your question is, No. You can get Action type with a simple code.Using ReturnType utility type, you...
View ArticleAnswer by Ray Megal for Get the type from a - "createAction" function
I'm relatively new to ng/ngrx and the like, but it seems that part of the reason for using the create* helper methods is to get better type support. I had this same issue and one of my effects went...
View ArticleGet the type from a - "createAction" function
There are two ways of creating an ngrx Action. One is to define a new class that implements the Action class and the other is to use the "createAction" function. Is there a way to get to the typings of...
View Article