Skip to content

Commit

Permalink
fix: update readme type definition (#32)
Browse files Browse the repository at this point in the history
Closes #31
  • Loading branch information
n1ru4l committed Oct 23, 2019
1 parent 8d52eb6 commit 05716c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ Runs a effect that includes async operations. The effect ins cancelled upon depe

```ts
function useAsyncEffect(
generator: (
createGenerator: (
setCancelHandler: (
onCancel?: null | (() => void),
onCancelError?: null | ((err: Error) => void)
) => void
) => IterableIterator<any>,
dependencyList: React.DependencyList
) => Iterator<any, any, any>,
deps: React.DependencyList
): void;
```

Expand Down

0 comments on commit 05716c9

Please sign in to comment.