@rschedule/rschedule
Version:
A typescript library for working with recurring dates and events.
18 lines • 651 B
TypeScript
import { DateAdapter } from '../date-adapter';
import { DateTime } from '../date-time';
export interface IRunnable<T extends typeof DateAdapter> {
readonly timezone: string | null;
readonly isInfinite: boolean;
/** note: an iterator without any occurrences hasDuration === true */
readonly hasDuration: boolean;
firstDate: InstanceType<T> | null;
lastDate: InstanceType<T> | undefined | null;
set(prop: 'timezone', value: string | null): IRunnable<T>;
}
export interface IRunArgs {
start?: DateTime;
end?: DateTime;
take?: number;
reverse?: boolean;
}
//# sourceMappingURL=runnable.d.ts.map