"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphSetUnitPinIgnored = watchGraphSetUnitPinIgnored;
function watchGraphSetUnitPinIgnored(event, graph, callback) {
    const listener = (...[unitId, type, pinId, ignored, path]) => {
        callback({
            type: 'graph',
            event,
            data: {
                unitId,
                type,
                pinId,
                ignored,
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
//# sourceMappingURL=watchGraphSetUnitPinIgnoredEvent.js.map