Skip to content

Commit

Permalink
README: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
harunou committed May 12, 2023
1 parent 2e17b4e commit 76e159b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![codecov](https://codecov.io/github/harunou/to-flow-generator-function/branch/main/graph/badge.svg?token=1WTYGPJ8N5)](https://codecov.io/github/harunou/to-flow-generator-function)

Converts a promise-returning function to a generator-returning one. This is intended to allow for usage of type-safe yield inside MobX flow wrapper.
Converts a promise-returning function to a generator-returning one. This is intended to allow for the usage of type-safe yield inside a MobX flow wrapper.

## Parameters

Expand All @@ -25,7 +25,7 @@ function* fetchUserData(id: number): FlowGenerator<UserData> {
const name = yield* toFlowGeneratorFunction(fetchUserName)(id);
// name is type of string
const age = yield* toFlowGeneratorFunction(fetchUserAge)(id);
// name is type of number
// age is type of number
return {
id,
name,
Expand Down

0 comments on commit 76e159b

Please sign in to comment.