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

Function isRecord

packages/core/src/chart/index.ts:93–95  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

91const CHART_TYPES = new Set<ChartType>(['bar', 'line', 'pie', 'heatmap'])
92
93function isRecord(value: unknown): value is Record<string, unknown> {
94 return typeof value === 'object' && value !== null && !Array.isArray(value)
95}
96
97function asFieldName(value: unknown, label: string): string {
98 if (typeof value !== 'string' || value.trim().length === 0) {

Callers 1

normalizeChartSpecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected