You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library isn't currently supporting ES6 style iterators (neither the parser is compatible with it), therefore next() isn't returning correct iterator as you could expect.
The best you can do at this point: cost obj = interval.next() as IteratorResult<CronDate>
When using the flag
iterator: true
the value returned by the iterator does not match the typescript types.For this code:
The following error is shown.
Property 'value' does not exist on type 'CronDate'.
The methods such as toString, toDate etc are only accessible through interval.next().value.toString, interval.next().toDate when using this flag.
The text was updated successfully, but these errors were encountered: