Hi, is there a reason why ofType(closePriceSubscription.type) is used? I believe this is breaking the type-safety. I haven't checked this, so I might be wrong...
UI Consultant, Maker & Technical Writer.
I write about JS, TS, Rx, Angular & all things Front End
🇮🇹🇬🇧
Follow me on Twitter: https://twitter.com/gc_psk
Founder of https://makerkit.dev
You're totally right! I think I'd tried that and received some errors initially and then I switched to using .type. Might be because I was using an unstable version at the time :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, is there a reason why
ofType(closePriceSubscription.type)
is used? I believe this is breaking the type-safety. I haven't checked this, so I might be wrong...To preserve typesafe you can do:
You're totally right! I think I'd tried that and received some errors initially and then I switched to using
.type
. Might be because I was using an unstable version at the time :)