1 | import { __extends } from "tslib";
|
2 | import IterResult from './iterresult';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | var CallbackIterResult = (function (_super) {
|
8 | __extends(CallbackIterResult, _super);
|
9 | function CallbackIterResult(method, args, iterator) {
|
10 | var _this = _super.call(this, method, args) || this;
|
11 | _this.iterator = iterator;
|
12 | return _this;
|
13 | }
|
14 | CallbackIterResult.prototype.add = function (date) {
|
15 | if (this.iterator(date, this._result.length)) {
|
16 | this._result.push(date);
|
17 | return true;
|
18 | }
|
19 | return false;
|
20 | };
|
21 | return CallbackIterResult;
|
22 | }(IterResult));
|
23 | export default CallbackIterResult;
|
24 |
|
\ | No newline at end of file |