MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / firstOf

Function firstOf

telemetry-dashboard/src/api.ts:73–73  ·  view source on GitHub ↗
(result: D1Result | undefined)

Source from the content-addressed store, hash-verified

71 */
72const rowsOf = <T>(result: D1Result | undefined): T[] => (result?.results ?? []) as unknown as T[];
73const firstOf = <T>(result: D1Result | undefined): T | undefined => rowsOf<T>(result)[0];
74
75// ---------------------------------------------------------------------------
76// Days

Callers 5

summaryFunction · 0.85
timeseriesFunction · 0.85
durationBucketSeriesFunction · 0.85
activationFunction · 0.85
retentionFunction · 0.85

Calls 1

rowsOfFunction · 0.70

Tested by

no test coverage detected