UNPKG

@chix/flow

Version:
36 lines 1.3 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var node_1 = require("./node"); var PortBox = (function (_super) { __extends(PortBox, _super); function PortBox(name) { var _this = _super.call(this, name) || this; _this.name = name || 'PortBox'; return _this; } PortBox.prototype.define = function () { this.addArg('data', null); this.addArg('source', null); this.addArg('state', {}); this.addArg('input', {}); this.addArg('$', {}); this.addArg('output', null); this.addReturn('state'); }; return PortBox; }(node_1.NodeBox)); exports.PortBox = PortBox; //# sourceMappingURL=port.js.map