"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphSetUnitPinIgnored = void 0;
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);
    };
}
exports.watchGraphSetUnitPinIgnored = watchGraphSetUnitPinIgnored;
//# sourceMappingURL=watchGraphSetUnitPinIgnoredEvent.js.map