UNPKG

@compute.ts/boolean

Version:

Provide boolean operators for the computeTS package

1 lines 870 B
"use strict";var __extends=this&&this.__extends||function(){var n=function(o,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])})(o,e)};return function(o,e){function t(){this.constructor=o}n(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComputeBooleanVariable=void 0;var ComputeBooleanNode_1=require("./ComputeBooleanNode"),ComputeBooleanVariable=function(e){function o(o){return e.call(this,[],void 0,o)||this}return __extends(o,e),o.prototype.affect=function(o){if("boolean"!=typeof o)throw Error("The given value is not a boolean");e.prototype.affect.call(this,o)},o}(ComputeBooleanNode_1.ComputeBooleanNode);exports.ComputeBooleanVariable=ComputeBooleanVariable;