Skip to main content
function scheduleWithRuleRegistry<R, S, T, TRuleRegistry, TRules>(ruleRegistry, config): Schedule<TRuleRegistry>;
Create a schedule definition with an explicit complete rule registry.

Type Parameters

R

R extends readonly string[]

S

S extends readonly string[] = readonly []

T

T extends Record<string, SemanticTimeEntry> = Record<string, SemanticTimeEntry>

TRuleRegistry

TRuleRegistry extends CpsatRuleRegistry = CpsatRuleRegistry

TRules

TRules extends readonly unknown[] = readonly ScheduleRuleEntry<TRuleRegistry>[]

Parameters

ruleRegistry
TRuleRegistry
required
config
required
Omit<ScheduleWithRuleRegistryConfig<R, S, T, TRuleRegistry>, "rules"> & object

Returns

Schedule<TRuleRegistry> Use this when you want full control over the active rule registry, including schedules that do not include the built-in rules.