enum definition typescript code example
Example 1: ts enum definition
enum PrintMedia {
Newspaper,
Newsletter,
Magazine,
Book
}
Example 2: enum in ts
enum Direction {
Up,
Down,
Left,
Right,
}
enum PrintMedia {
Newspaper,
Newsletter,
Magazine,
Book
}
enum Direction {
Up,
Down,
Left,
Right,
}