UNPKG

swapable

Version:
40 lines (39 loc) 947 B
"use strict"; /** * This file is part of Swapable shared under AGPL-3.0 * Copyright (C) 2021 Using Blockchain Ltd, Reg No.: 12658136, United Kingdom * * @package Swapable * @author Grégory Saive for Using Blockchain Ltd <greg@ubc.digital> * @license AGPL-3.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandOption = void 0; /** * @class CommandOption * @package Swapable * @subpackage Models * @since v1.0.0 * @description Generic model that describes parameters of a command execution. */ class CommandOption { /** * Constructor for CommandOption objects * * @param {string} name * @param {ValueType} value */ constructor( /** * @description The option name */ name, /** * @description The option value */ value) { this.name = name; this.value = value; } } exports.CommandOption = CommandOption;