Call Signature
Type Parameters
T
T extends string
R
R extends string
Parameters
timeName
target
Role name (string), array of role names (OR logic), or skill nameR | [R, ...R[]]
count
opts?
CoverageOptions
Options: skillIds (AND filter), dayOfWeek, dates, priority
Returns
CoverageEntry<T, R>
Remarks
Entries for the same time and role stack additively. For weekday vs weekend staffing, use mutually exclusivedayOfWeek
on both entries.
Example
Call Signature
Type Parameters
T
T extends string
R
R extends string
Parameters
timeName
target
Role name (string), array of role names (OR logic), or skill nameR | [R, ...R[]]
variants
…[CoverageVariant, ...CoverageVariant[]]
Returns
CoverageEntry<T, R>
Remarks
Entries for the same time and role stack additively. For weekday vs weekend staffing, use mutually exclusivedayOfWeek
on both entries.