We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
generator function union contextual typing yield expression
4.8.4
Playground link with relevant code
type Action = () => (Generator<string, string, string[]> | string) const b: Action = function* () { // expect `string[]`, actual `never` const c = yield '' return '' }
never
string[]
The text was updated successfully, but these errors were encountered:
Other cases:
unknown:
unknown
Sorry, something went wrong.
rbuckton
Successfully merging a pull request may close this issue.
Bug Report
π Search Terms
generator function union contextual typing yield expression
π Version & Regression Information
4.8.4
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
never
π Expected behavior
string[]
The text was updated successfully, but these errors were encountered: