Skip to content

Type Alias: TemporalRule

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TemporalRule

TemporalRule = { type: "no_consec"; } | { max1ShiftPerDay: boolean; maxDays: number; type: "capacity"; } | { k: number; type: "max_consecutive_nights"; }

Defined in: src/types/solver.ts:204

A temporal rule enforced over a regular timeline.

Tagged discriminated union keyed on type. Wire format (snake_case) mirrors this shape verbatim.