"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchRefPin = watchRefPin;
const callAll_1 = require("../util/call/callAll");
const watchRefPinEvent_1 = require("./watchRefPinEvent");
function watchRefPin(type, pinType, pinId, pin, callback) {
    const all = [
        (0, watchRefPinEvent_1.watchRefPinEvent)('data', type, pinType, pinId, pin, callback),
        (0, watchRefPinEvent_1.watchRefPinEvent)('drop', type, pinType, pinId, pin, callback),
    ];
    const unlisten = (0, callAll_1.callAll)(all);
    return unlisten;
}
//# sourceMappingURL=watchRefPin.js.map