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