import ClientCommand from "./ClientCommand"; /** * An `option` command sent from the server to describe an option, it's type, it's name * and it's default value. */ export default class OptionCommand extends ClientCommand { /** The option name. */ readonly name: string; /** The option type. */ readonly kind: "check" | "spin" | "combo" | "button" | "string"; /** The minimum value. */ readonly min?: number; /** The maximum value. */ readonly max?: number; /** The `combo` options. */ readonly options?: string[]; /** The default value. */ readonly defaultValue?: boolean | number | string; constructor( /** The option name. */ name: string, /** The option type. */ kind: "check" | "spin" | "combo" | "button" | "string", /** The minimum value. */ min?: number, /** The maximum value. */ max?: number, /** The `combo` options. */ options?: string[], /** The default value. */ defaultValue?: boolean | number | string); }