"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const Async_1 = require("../../../../../types/interface/async/Async");
const _ids_1 = require("../../../../_ids");
class Append extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a[]', 'a'],
            o: [],
        }, {
            input: {
                'a[]': {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_APPEND_0);
    }
    async f({ 'a[]': _a, a }, done, fail) {
        _a = (0, Async_1.Async)(_a, ['A'], this.__system.async);
        _a.$append({ a }, (_, err) => {
            if (err) {
                fail(err);
                return;
            }
            done({});
        });
    }
}
exports.default = Append;
//# sourceMappingURL=index.js.map