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