MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / readStringList

Function readStringList

src/core/createCompat.ts:314–322  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

312}
313
314function readStringList(value: unknown): string[] {
315 if (Array.isArray(value)) {
316 return value
317 .map((entry) => readString(entry))
318 .filter((entry): entry is string => typeof entry === "string");
319 }
320 const single = readString(value);
321 return single ? [single] : [];
322}
323
324function sanitizeForPathSegment(value: string): string {
325 return value

Callers 1

buildTemplateValuesFunction · 0.85

Calls 1

readStringFunction · 0.85

Tested by

no test coverage detected