"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.valueToMatchOptions = valueToMatchOptions;
/**
 * @private
 * Convert a field value into a MatchOptions if it's not already one
 * @param value
 * @returns
 */
function valueToMatchOptions(value) {
    let result = {};
    if (Array.isArray(value)) {
        result = {
            any: value,
        };
    }
    else {
        if (typeof value === "string") {
            result = {
                any: [value],
            };
        }
        if (typeof value === "object") {
            result = value;
        }
    }
    return result;
}
//# sourceMappingURL=valueToMatchOptions.js.map