MCPcopy
hub / github.com/pyrochlore/obsidian-tracker / getStringFromInput

Function getStringFromInput

src/parsing.ts:380–387  ·  view source on GitHub ↗
(input: any, defaultValue: string)

Source from the content-addressed store, hash-verified

378}
379
380function getStringFromInput(input: any, defaultValue: string): string {
381 if (typeof input === "string") {
382 return helper.replaceImgTagByAlt(input);
383 } else if (typeof input === "number") {
384 return input.toString();
385 }
386 return defaultValue;
387}
388
389function getStringArrayFromInput(
390 name: string,

Callers 2

parseCommonChartInfoFunction · 0.85
getRenderInfoFromYamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected