"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomTypeValidator = void 0;
const RouteTypeEnums_1 = require("../../../../../helpers/RouteTypeEnums");
class CustomTypeValidator {
}
exports.CustomTypeValidator = CustomTypeValidator;
_a = CustomTypeValidator;
CustomTypeValidator.allowedTypes = (0, RouteTypeEnums_1.getGtfsRouteTypesAsStrings)();
CustomTypeValidator.validate = (value, _) => {
    if (value instanceof Array) {
        return value.every((source) => _a.allowedTypes.includes(source));
    }
    else {
        return _a.allowedTypes.includes(value);
    }
};
//# sourceMappingURL=CustomTypeValidator.js.map