MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / isRecord

Function isRecord

apps/cli/src/ai/chat-command.ts:80–82  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

78}
79
80function isRecord(value: unknown): value is Record<string, unknown> {
81 return typeof value === 'object' && value !== null && !Array.isArray(value)
82}
83
84function isChartPayload(value: unknown): value is ChartPayload {
85 return isRecord(value) && value.version === 1 && isRecord(value.spec) && isRecord(value.dataset)

Callers 2

isChartPayloadFunction · 0.70
extractChartPayloadsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected