The Dangers of TypeScript Enums

TypeScript introduces a lot of new language features that are common in statically type languages, such as classes (which are now part of the JavaScript language), interfaces, generics and union types to name a few.
But there’s one special type that we…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

TypeScript introduces a lot of new language features that are common in statically type languages, such as classes (which are now part of the JavaScript language), interfaces, generics and union types to name a few. But there’s one special type that we want to discuss today and that is enums. Enum, short for Enumerated Type, is a common language feature of many statically types languages such as C, C#, Java, Swift any many others, is a group of named constant values that you can use within your code.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-12-01T02:52:29+00:00) » The Dangers of TypeScript Enums. Retrieved from https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/.
MLA
" » The Dangers of TypeScript Enums." Posts on LINQ to Fail | Sciencx - Wednesday May 27, 2020, https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/
HARVARD
Posts on LINQ to Fail | Sciencx Wednesday May 27, 2020 » The Dangers of TypeScript Enums., viewed 2023-12-01T02:52:29+00:00,<https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » The Dangers of TypeScript Enums. [Internet]. [Accessed 2023-12-01T02:52:29+00:00]. Available from: https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/
CHICAGO
" » The Dangers of TypeScript Enums." Posts on LINQ to Fail | Sciencx - Accessed 2023-12-01T02:52:29+00:00. https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/
IEEE
" » The Dangers of TypeScript Enums." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/. [Accessed: 2023-12-01T02:52:29+00:00]
rf:citation
» The Dangers of TypeScript Enums | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2020/05/27/the-dangers-of-typescript-enums/ | 2023-12-01T02:52:29+00:00
https://github.com/addpipe/simple-recorderjs-demo