using enum in function parameter call in typescript code example
Example 1: enum in ts
enum Direction {
Up,
Down,
Left,
Right,
}
Example 2: enums in typescript
enum Direction {
Up = 1,
Down,
Left,
Right,
}
enum Direction {
Up,
Down,
Left,
Right,
}
enum Direction {
Up = 1,
Down,
Left,
Right,
}