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