UNPKG

@rschedule/rschedule

Version:

A typescript library for working with recurring dates and events.

21 lines 1.01 kB
import { DateAdapter } from '../date-adapter'; import { IOccurrenceGenerator } from '../interfaces'; import { Operator, OperatorFnOutput } from './interface'; declare const ADD_OPERATOR_ID: unique symbol; /** * An operator function which accepts a spread of occurrence generators * and adds their occurrences to the output. * * @param streams a spread of occurrence generators */ export declare function add<T extends typeof DateAdapter>(...streams: IOccurrenceGenerator<T>[]): OperatorFnOutput<T>; export declare class AddOperator<T extends typeof DateAdapter> extends Operator<T> { static isAddOperator(object: unknown): object is AddOperator<any>; protected readonly [ADD_OPERATOR_ID] = true; /** Not actually used but necessary for IRunnable interface */ set(_: 'timezone', value: string | null): AddOperator<T>; protected calculateIsInfinite(): boolean; protected calculateHasDuration(): boolean; } export {}; //# sourceMappingURL=add.operator.d.ts.map