MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / asString

Function asString

masfactory-visualizer/src/debug/pythonDebugTracker.ts:14–15  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

12 const asNumber = (v: unknown): number | undefined =>
13 typeof v === 'number' && Number.isFinite(v) ? v : undefined;
14 const asString = (v: unknown): string | undefined =>
15 typeof v === 'string' && v.trim() ? v : undefined;
16
17 const tryResolvePilotSessionId = (pid: number | null): string | undefined => {
18 if (pid === null) {return undefined;}

Callers 2

publishStoppedFunction · 0.70
onDidSendMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected