I\'m exploring TypeScript\'s type system and wanted to keep my Redux actions type-safe without getting too much boilerplate. I\'ve come up with an idea to use sum/union type