UNPKG

@wulperstudio/cms

Version:
16 lines (15 loc) 449 B
"use strict"; 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; } }