MCPcopy
hub / github.com/SukkaW/Surge / appendDescription

Method appendDescription

Build/lib/rules/base.ts:90–103  ·  view source on GitHub ↗
(description: string | string[], ...rest: string[])

Source from the content-addressed store, hash-verified

88 }
89
90 appendDescription(description: string | string[], ...rest: string[]) {
91 this.description ??= [];
92 if (typeof description === 'string') {
93 this.description.push(description);
94 } else {
95 appendArrayInPlace(this.description, description);
96 }
97
98 if (rest.length) {
99 appendArrayInPlace(this.description, rest);
100 }
101
102 return this;
103 }
104
105 protected date = new Date();
106 withDate(date: Date) {

Calls

no outgoing calls

Tested by

no test coverage detected