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

Function firstOf

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

Source from the content-addressed store, hash-verified

63 */
64const rowsOf = <T>(result: D1Result | undefined): T[] => (result?.results ?? []) as unknown as T[];
65const firstOf = <T>(result: D1Result | undefined): T | undefined => rowsOf<T>(result)[0];
66
67// ---------------------------------------------------------------------------
68// 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