typescript enums best practices code example
Example 1: ts enum definition
enum PrintMedia {
Newspaper,
Newsletter,
Magazine,
Book
}
Example 2: declare enum in type script
enum PrintMedia {
Newspaper = 1,
Newsletter,
Magazine,
Book
}