Skip to main content
cngx-src documentation

TimelineGroupingFn

Type Aliascommon/timeline

projects/common/timeline/grouping.ts

Description#

Escape hatch for consumer-defined bucketing - UTC days, fiscal quarters, sprint windows, "today / this week / earlier". Receives the coerced date and the item it came from, so a grouper may key off payload fields (tenant, channel) as well as time.

Called once per item per recomputation; keep it pure and cheap.

Definition#

function