-
Notifications
You must be signed in to change notification settings - Fork 12.8k
yield*: Delegating to other generators is not an array #17585
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
Comments
I'll have to fix the playground up, but make sure that
|
@DanielRosenwasser The documentation about generators are not there yet, should I update those? |
I wish this was better documented, or ideally, the error message was much better. I keep running into this here and there and it would be really cool if the compiler could just let me know to enable this to make it work. |
Definitely agree with you @TomasHubelbauer. I had the same problem, and fortunately this was posted here before, otherwise, I'd spent so much time to figure out what was the real problem. |
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
This issue might be a duplicate of #17276 (but it addresses another issue)
Code
The following example is straight out of the MDN docs and copied it right into TS Playground:
Expected behavior:
Expect that the error won't appear.
Actual behavior:
Typescript throws an error that
g1()
is not an array type.The text was updated successfully, but these errors were encountered: