@compute.ts/string
Version:
Provide string operators for the computeTS package
1 lines • 860 B
JavaScript
;var __extends=this&&this.__extends||function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};return function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComputeStringVariable=void 0;var ComputeStringNode_1=require("./ComputeStringNode"),ComputeStringVariable=function(e){function t(t){return e.call(this,[],void 0,t)||this}return __extends(t,e),t.prototype.affect=function(t){if("string"!=typeof t)throw Error("The given value is not a string");e.prototype.affect.call(this,t)},t}(ComputeStringNode_1.ComputeStringNode);exports.ComputeStringVariable=ComputeStringVariable;