MCPcopy
hub / github.com/Dimillian/CodexMonitor / asString

Function asString

src/features/threads/utils/threadNormalize.ts:12–14  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10} from "@/types";
11
12export function asString(value: unknown) {
13 return typeof value === "string" ? value : value ? String(value) : "";
14}
15
16function asNumber(value: unknown): number {
17 if (typeof value === "number" && Number.isFinite(value)) {

Callers 15

firstNonEmptyStringFunction · 0.90
getSubagentKindFunction · 0.90
getResumedTurnStateFunction · 0.90
buildResumeHydrationPlanFunction · 0.90
useThreadMessagingFunction · 0.90
useThreadActionsFunction · 0.90
useThreadTurnEventsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected