class-enum
class-enum copied to clipboard
fix: `EnumNotFound` not thrown when running valueOf with the name of an element in Object.prototype
배경
Object.prototype의 요소인, toString,valueOf 등의 이름으로 class-enum의 valueOf를 수행할 경우 EnumNotFound가 던져지지 않는 문제가 있습니다.
수정 사항
getEnums 함수의 리턴 타입을 Map으로 수정했습니다.
good. thank you.