Skip to main content
function partialSchedule(config): Schedule;
Create a partial schedule for composition via .with(). Unlike schedule, all fields are optional. Use this for schedules that layer rules, coverage, or other config onto a complete base schedule.

Parameters

config
required
Partial<ScheduleConfig<readonly string[], readonly string[]>>

Returns

Schedule

Example

const companyPolicy = partialSchedule({
  rules: [maxHoursPerWeek(40), minRestBetweenShifts(11)],
});

const ready = venue.with(companyPolicy, teamMembers);