Skip to content

Type Alias: TemporalRule

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Solver / TemporalRule

Type Alias: TemporalRule

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

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

A temporal rule enforced over a regular timeline.

Remarks

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