MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/theme/builder.js:47–51  ·  view source on GitHub ↗

* Creates a theme * @param {string} [name] name of the theme * @param {'dark'|'light'} [type] type of the theme * @param {'free'|'paid'} [version] version of the theme

(name = "", type = "dark", version = "free")

Source from the content-addressed store, hash-verified

45 * @param {'free'|'paid'} [version] version of the theme
46 */
47 constructor(name = "", type = "dark", version = "free") {
48 this.name = name;
49 this.type = type;
50 this.version = version;
51 }
52
53 get id() {
54 return this.name.toLowerCase();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected