import GenericObject from "../Types/GenericObject"; export default class EnumUtil { public static isValidEnumValue( enumType: T, value: any, ): boolean { return this.getValues(enumType).includes(value); } public static getValues(enumType: T): Array { return Object.values(enumType); } }