Skip to main content

Type Alias: ScheduleConstraint

ScheduleConstraint = { date: Instant; kind: "startNoEarlierThan"; } | { date: Instant; kind: "finishNoLaterThan"; } | { date: Instant; kind: "mustStartOn"; }

Defined in: scheduling/schedule-request.ts:29

A date rule on one Entry. The precedence is: manually scheduled, then mustStartOn, then a dependency, then startNoEarlierThan.

Union Members​

Type Literal​

{ date: Instant; kind: "startNoEarlierThan"; }

date​

readonly date: Instant

kind​

readonly kind: "startNoEarlierThan"

The Entry never starts before date. A dependency can still move it later.


Type Literal​

{ date: Instant; kind: "finishNoLaterThan"; }

date​

readonly date: Instant

kind​

readonly kind: "finishNoLaterThan"

The Entry should finish by date. The engine never moves it to meet the date. A dependency that pushes the finish past it wins, and a diagnostic names the constraint.


Type Literal​

{ date: Instant; kind: "mustStartOn"; }

date​

readonly date: Instant

kind​

readonly kind: "mustStartOn"

The Entry starts on date. It wins over a dependency, and a dependency it breaks gives a diagnostic.