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