Fixed type script enum and helper method