niieani/typescript-vs-flowtype

Typescript Enum

Open

#57 aperta il 11 giu 2019

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari) (76 fork)github user discovery
help wanted

Metriche repository

Star
 (1727 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Typescript enums feature is very useful. Its much better than literal types in most cases. Its much easier to maintain. Renaming an enum value is possible out of the box, while a literal type requires a full project text search.

Guida contributor