Skip to content
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

Fix Generator yield type #412

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

tetsuo
Copy link
Contributor

@tetsuo tetsuo commented Jan 14, 2020

Fixes an issue where go can't determine the return type of a yield.

const g = () => {
  return F.go(function*() {
    const thing: number = yield F.resolve(42)
    return F.resolve(43 + thing)
  })
}

(Original bug report on Gitter)

@Avaq Avaq merged commit ce4dc14 into fluture-js:master Jan 14, 2020
Avaq added a commit that referenced this pull request Jan 14, 2020
- #412 (f188e0e) Fixes an issue related to the TypeScript
  typings for the 'go' function.
@Avaq
Copy link
Member

Avaq commented Jan 14, 2020

Thank you Onur! I released this under 12.1.1. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants