function makePartsList(pattern, unit, parts) {
        var e_1, _a, e_2, _b;
        var patternParts = partitionPattern(pattern);
        var result = [];
        try {
            for (var patternParts_1 = __values(patternParts), patternParts_1_1 = patternParts_1.next(); !patternParts_1_1.done; patternParts_1_1 = patternParts_1.next()) {
                var patternPart = patternParts_1_1.value;
                if (isLiteralPart(patternPart)) {
                    result.push({
                        type: 'literal',
                        value: patternPart.value,
                    });
                }
                else {
                    invariant(patternPart.type === '0', "Malformed pattern " + pattern);
                    try {
                        for (var parts_1 = (e_2 = void 0, __values(parts)), parts_1_1 = parts_1.next(); !parts_1_1.done; parts_1_1 = parts_1.next()) {
                            var part = parts_1_1.value;
                            result.push({
                                type: part.type,
                                value: part.value,
                                unit: unit,
                            });
                        }
                    }
                    catch (e_2_1) { e_2 = { error: e_2_1 }; }
                    finally {
                        try {
                            if (parts_1_1 && !parts_1_1.done && (_b = parts_1.return)) _b.call(parts_1);
                        }
                        finally { if (e_2) throw e_2.error; }
                    }
                }
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (patternParts_1_1 && !patternParts_1_1.done && (_a = patternParts_1.return)) _a.call(patternParts_1);
            }
            finally { if (e_1) throw e_1.error; }
        }
        return result;
    }
https://tc39.es/proposal-intl-relative-time/#sec-makepartslist
@param pattern
@param unit
@param parts