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

Function asString

masfactory-visualizer/src/shared/webviewProtocol.ts:137–139  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

135}
136
137function asString(value: unknown): string | null {
138 return typeof value === 'string' && value.trim() ? value : null;
139}
140
141function asBoolean(value: unknown): boolean | null {
142 return typeof value === 'boolean' ? value : null;

Callers 3

asOptionalStringFunction · 0.70
parseAppInboundMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected