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

Function isRecord

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

Source from the content-addressed store, hash-verified

137 };
138
139function isRecord(value: unknown): value is Record<string, unknown> {
140 return !!value && typeof value === 'object' && !Array.isArray(value);
141}
142
143function asString(value: unknown): string | null {
144 return typeof value === 'string' && value.trim() ? value : null;

Callers 4

parseSessionsFunction · 0.70
parseDebugLocationFunction · 0.70
parseDebugExceptionFunction · 0.70
parseRuntimeMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected