Options
All
  • Public
  • Public/Protected
  • All
Menu

Resolution engine for a single ScheduleConstraint. Constraints are sorted by range descending so the outermost period (year > month > day > …) is walked first; the innermost period becomes the tickConstraint used to align and step occurrences.

internal

Hierarchy

  • CompiledConstraintImpl

Implements

  • {}

Index

Methods

Methods

end

  • end(dir: string, startDate: Date): Date | undefined
  • End of the current satisfying range starting at startDate, found by walking constraints innermost-first to locate the nearest gap.

    Parameters

    • dir: string
    • startDate: Date

    Returns Date | undefined

start

  • start(dir: string, startDate: Date): Date | 0
  • First date on or after startDate that satisfies every constraint. Uses a bounded fixpoint loop — bailout at 1e3 iterations guards against pathological combinations that would otherwise spin indefinitely.

    Parameters

    • dir: string
    • startDate: Date

    Returns Date | 0

tickSafe

  • tickSafe(dir: string, date: Date): Date
  • DST-safe variant of tick. Currently delegates to tick; kept as a separate entry point so IntervalParseHelpers.tickStarts can fall back here when the naive tick would loop on a DST transition.

    Parameters

    • dir: string
    • date: Date

    Returns Date

Generated using TypeDoc