UNPKG

525 BTypeScriptView Raw
1import IterResult, { IterArgs } from './iterresult';
2declare type Iterator = (d: Date, len: number) => boolean;
3/**
4 * IterResult subclass that calls a callback function on each add,
5 * and stops iterating when the callback returns false.
6 */
7export default class CallbackIterResult extends IterResult<'all' | 'between'> {
8 private iterator;
9 constructor(method: 'all' | 'between', args: Partial<IterArgs>, iterator: Iterator);
10 add(date: Date): boolean;
11}
12export {};
13//# sourceMappingURL=callbackiterresult.d.ts.map
\No newline at end of file