MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / stringifyUnknownValue

Function stringifyUnknownValue

src/api/TaskNotesAPI.ts:3227–3241  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3225}
3226
3227function stringifyUnknownValue(value: unknown): string {
3228 if (
3229 typeof value === "string" ||
3230 typeof value === "number" ||
3231 typeof value === "boolean" ||
3232 typeof value === "bigint"
3233 ) {
3234 return String(value);
3235 }
3236 try {
3237 return JSON.stringify(value) ?? "";
3238 } catch {
3239 return "";
3240 }
3241}
3242
3243function dateAddRuntimeValue(value: {
3244 fn: "dateAdd";

Callers 2

normalizeRuntimeValueFunction · 0.85
toFilterConditionValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected