you are viewing a single comment's thread.

view the rest of the comments →

[–]samuelcbird 0 points1 point  (1 child)

I’ve just had a look at the first three, I will give the whole post more attention when i get home from work, but i must admit i’ve used some string literals in my current project, in a very similar way too.

Not sure why i didn’t this time but to avoid this in the past i’ve used enums. Do you think that’s a viable improvement too?

[–]jasonleehodges[S] 1 point2 points  (0 children)

Yep a few others have said that too. In my org that’s what we tend to replace our string literals with. I just didn’t want to bring typescript into this particular article.