MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / hasNdviPayload

Function hasNdviPayload

src/lib/query-cache.ts:44–48  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

42}
43
44export function hasNdviPayload(value: unknown) {
45 if (!value || typeof value !== "object") return false;
46 const payload = value as Record<string, unknown>;
47 return typeof payload.mean_ndvi === "number" || Array.isArray(payload.timeseries);
48}

Callers 3

fetchNdviStatsFunction · 0.90
fetchTsFunction · 0.90
fetchTsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected