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

Function asString

masfactory-visualizer/src/runtime/runtimeHub.ts:32–35  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

30}
31
32function asString(value: unknown): string | null {
33 if (typeof value === 'string' && value.trim() !== '') {return value;}
34 return null;
35}
36
37function asMode(value: unknown): VisualizerMode {
38 const s = typeof value === 'string' ? value.toLowerCase() : '';

Callers 1

onTextMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected