typescript function return enum type code example
Example 1: enum in ts
enum Direction {
Up,
Down,
Left,
Right,
}
Example 2: declare enum in type script
enum PrintMedia {
Newspaper = 1,
Newsletter,
Magazine,
Book
}
enum Direction {
Up,
Down,
Left,
Right,
}
enum PrintMedia {
Newspaper = 1,
Newsletter,
Magazine,
Book
}