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

Update typings to allow flow to take async generators - async function* - MobX 4 #1655

Merged

Conversation

Obi-Dann
Copy link
Contributor

flow already supports async generators yielding Promises, just changing typings to allow it.
Also changing from IterableIterator to Iterator:
IterableIterator implements Iterator with the addition of [Symbol.iterator] property.
Because mobx does not use [Symbol.iterator] property, it's not necessary to use IterableIterator.

flow already supports async generators that yield promises,
just changing typings to allow it to
Also changing from IterableIterator to Iterator:
IterableIterator implements Iterator and adds Symbol.iterator property.
Because mobx does not use Symbol.iterator property,
it's not necessary to use IterableIterator.
@Obi-Dann Obi-Dann changed the title Update typings to allow flow to take async generators - async function* Update typings to allow flow to take async generators - async function* - MobX 4 Jul 26, 2018
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.788% when pulling 3281c13 on dannsam:AsyncIteratorTypingsForFlow_mobx4 into 405a025 on mobxjs:mobx4-master.

@mweststrate mweststrate merged commit ad4288d into mobxjs:mobx4-master Aug 14, 2018
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.

3 participants