@scramjet/framework
Version:
Simple yet powerful live data computation framework.
14 lines • 527 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkTransformability = void 0;
function checkTransformability(target, propertyKey, descriptor) {
const originalValue = descriptor.value;
descriptor.value = function (...args) {
if (!this.transformable) {
throw new Error("Stream is not transformable.");
}
return originalValue.apply(this, args);
};
}
exports.checkTransformability = checkTransformability;
//# sourceMappingURL=decorators.js.map
;