all files / lib/UrlGenerator/ UrlGeneratorOptionalGroupPart.js

100% Statements 7/7
100% Branches 0/0
100% Functions 2/2
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                           
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
let UrlGeneratorOptionalGroupPart = class UrlGeneratorOptionalGroupPart {
    // parts: UrlGeneratorPartArray;
 
    /**
     * @param {UrlGeneratorPartArray} parts
    */
    constructor(parts) {
        this.parts = parts;
    }
 
    /**
     * @param {Object} args
     * @returns {string}
    */
    generate(args) {
        try {
            return this.parts.generate(args);
        } catch (err) {
            return '';
        }
    }
};
exports.default = UrlGeneratorOptionalGroupPart;
//# sourceMappingURL=UrlGeneratorOptionalGroupPart.js.map