typeof
does not get concatenated string type
#20676
Labels
Duplicate
An existing issue was already created
The pattern I used in code below is originally from Redux. When I use strings "as is", without any concatenation, it works. But when I try to move common part (prefix) out, it brokes. Intuitively I assume that since prefix and other parts are constants
typeof
should get united type.TypeScript Version: 2.7.0-dev.20171213
Code
Expected behavior:
No errors raised.
Actual behavior:
Raises errors:
The text was updated successfully, but these errors were encountered: