/**
 * Converts a string to an enum value
 *
 * strings not in the enum will be returned as the original string
 */
export function toEnum(value, enumType) {
    return (enumType[value] ||
        enumType[value.toUpperCase()] ||
        enumType[value.toLowerCase()] ||
        value);
}
/**
 * Converts an array of strings to an array of enum values
 *
 * strings not in the enum will be returned as the original string
 */
export function toEnums(values, enumType) {
    return values.map((value) => toEnum(value, enumType));
}
//# sourceMappingURL=toEnumConverters.js.map