UNPKG

@rschedule/rschedule

Version:

A typescript library for working with recurring dates and events.

15 lines 894 B
import { DateTime } from '../../date-time'; import { RuleOption } from '../rule-options'; import { IByDayOfWeekRuleOptions } from './06-by-day-of-week.pipe'; import { IPipeRule, IPipeRunFn, PipeRule } from './interfaces'; export declare class RevByDayOfWeekPipe extends PipeRule<IByDayOfWeekRuleOptions> implements IPipeRule<IByDayOfWeekRuleOptions> { run(args: IPipeRunFn): DateTime | null; private expandYearly; private expandMonthly; private expand; } /** For each byDayOfWeek entry, find the previous DateTime */ export declare function getPrevWeekdaysOfYear(date: DateTime, byDayOfWeek: RuleOption.ByDayOfWeek[]): DateTime[]; /** For each byDayOfWeek entry, find the previous DateTime */ export declare function getPrevWeekdaysOfMonth(date: DateTime, byDayOfWeek: RuleOption.ByDayOfWeek[]): DateTime[]; //# sourceMappingURL=rev-06-by-day-of-week.pipe.d.ts.map