Skip to content

Commit 10b8ae7

Browse files
author
rauldeheer
authored
Merge pull request #5 from FezVrasta/patch-1
feat: add Flow type definition
2 parents 701872f + 90d3d1a commit 10b8ae7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js.flow

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module 'use-async-effect' {
2+
declare function useAsyncEffect<V>(
3+
effect: () => Promise<V>,
4+
destroy?: ?(result?: V) => void,
5+
inputs?: any[]
6+
): void;
7+
}

0 commit comments

Comments
 (0)