Quantcast
Channel: Get the type from a - "createAction" function - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Get 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
Browsing all 3 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>