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

Function asString

masfactory-visualizer/src/shared/runtimeProtocol.ts:143–145  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

141}
142
143function asString(value: unknown): string | null {
144 return typeof value === 'string' && value.trim() ? value : null;
145}
146
147function asOptionalString(value: unknown): string | undefined {
148 const s = asString(value);

Callers 3

asOptionalStringFunction · 0.70
parseSessionsFunction · 0.70
parseRuntimeMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected