@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
16 lines (15 loc) • 449 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assocRefToPropRef = assocRefToPropRef;
var _object = require("./object");
function assocRefToPropRef(ref, propRef) {
if (typeof propRef === 'function') {
propRef(ref);
} else if (propRef && (0, _object.matchIsObject)(propRef) && 'current' in propRef) {
// @ts-ignore
// eslint-disable-next-line no-param-reassign
propRef.current = ref;
}
}