MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/6b9ljc/dont_overcomplicate_javascript_0/dhm7olq/?context=3
r/javascript • u/rista404 • May 15 '17
34 comments sorted by
View all comments
Show parent comments
10
Yes, and it really just points up the lack of decent enum types in JavaScript. It's unfortunate that Redux has to use string constants like this.
enum
1 u/alleycat5 May 15 '17 Luckily this is looking to get fixed in 2.4 with proper enum support. https://github.com/Microsoft/TypeScript/wiki/Roadmap#24 11 u/ns0 May 16 '17 Typescript!=JavaScript 2 u/alleycat5 May 16 '17 Sorry, for some reason I misread.
1
Luckily this is looking to get fixed in 2.4 with proper enum support. https://github.com/Microsoft/TypeScript/wiki/Roadmap#24
11 u/ns0 May 16 '17 Typescript!=JavaScript 2 u/alleycat5 May 16 '17 Sorry, for some reason I misread.
11
Typescript!=JavaScript
2 u/alleycat5 May 16 '17 Sorry, for some reason I misread.
2
Sorry, for some reason I misread.
10
u/eddieSullivan May 15 '17
Yes, and it really just points up the lack of decent
enumtypes in JavaScript. It's unfortunate that Redux has to use string constants like this.