MCPcopy Create free account
hub / github.com/MathMan05/Fermi / constructor

Method constructor

src/webpage/interactions/commands.ts:398–405  ·  view source on GitHub ↗
(optionjson: commandOptionJson, owner: Command)

Source from the content-addressed store, hash-verified

396 owner: Command;
397 constructor(optionjson: commandOptionJson, owner: Command) {
398 super(optionjson);
399 this.owner = owner;
400 this.minLeng = optionjson.min_length || 0;
401 this.maxLeng = optionjson.min_length || 6000;
402 this.choices = optionjson.choices;
403 this.autocomplete = optionjson.autocomplete || false;
404 }
405
406 toHTML(state: string, channel: Channel): HTMLElement {
407 const div = document.createElement("div");
408 div.contentEditable = "false";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected