UNPKG

integreat

Version:
11 lines 372 B
const createCastOperation = ({ $cast, ...props }) => ({ ...props, $transform: Symbol.for(`cast_${$cast}`), }); export default function modifyOperationObject(operation) { if (Object.prototype.hasOwnProperty.call(operation, '$cast')) { return createCastOperation(operation); } return operation; } //# sourceMappingURL=modifyOperationObject.js.map