UNPKG

sparkscript

Version:
13 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const components_1 = require("../core/components"); class SetVariable extends components_1.ActionBlock { constructor(action, ...args) { if (!("scope" in args[0]) || !("name" in args[0])) throw new Error("First given argument in a SetVariable block should be a variable."); super("set_var", action, args); this.variable = args[0]; } } exports.default = SetVariable; //# sourceMappingURL=SetVariable.js.map