A. Vatsaev
Jul 21, 2017 · 1 min read

Not true with ngrx/store. Actions are defined as TypeScript classes implementing Action interface, which has a ‘type’ attribute (the string constant as you call it), and payload attribute. Then all those classes are exported as a TypeScript union type, which makes them easier to use, especially in IDEs that support TypeScript.

    A. Vatsaev

    Written by

    Research & Development engineer at IRCAD — IHU. Mobile & Web Engineering.