-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types are incorrect when using es6 iterator flag #175
Labels
Comments
Anyone know a fix or workaround? Thanks |
This library isn't currently supporting ES6 style iterators (neither the parser is compatible with it), therefore The best you can do at this point: See #82 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: