Use type alias for enum type