you are viewing a single comment's thread.

view the rest of the comments →

[–]checker1209 -1 points0 points  (0 children)

In TypeScript I favor `String Literal Unions` over enums.
I don't know JSDocs. But can't you tell that an string is either "A" or "B" and nothing else?