MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isRecord

Function isRecord

src/stores/aiChatChartBlocks.ts:110–112  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

108}
109
110function isRecord(value: unknown): value is Record<string, unknown> {
111 return typeof value === 'object' && value !== null && !Array.isArray(value)
112}
113
114export function isChartPayload(value: unknown): value is ChartPayload {
115 return isRecord(value) && value.version === 1 && isRecord(value.spec) && isRecord(value.dataset)

Callers 7

isChartPayloadFunction · 0.70
extractChartPayloadsFunction · 0.70
stableStringifyFunction · 0.70
hasDuplicateChartFunction · 0.70
extractToolResultTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected