Skip to content

Commit df97e72

Browse files
dawsonc623n1ru4l
authored andcommitted
fix: typescript compilation error (#29)
1 parent 89295c7 commit df97e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/use-async-effect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useRef } from "react";
22

3-
const noop = () => {};
3+
const noop = () => { };
44

55
export const useAsyncEffect = (
66
createGenerator: (
@@ -9,7 +9,7 @@ export const useAsyncEffect = (
99
onCancelError?: null | ((err: Error) => void)
1010
) => void
1111
) => // eslint-disable-next-line @typescript-eslint/no-explicit-any
12-
IterableIterator<any>,
12+
Iterator<any, any, any>,
1313
deps: React.DependencyList
1414
) => {
1515
const generatorRef = useRef(createGenerator);

0 commit comments

Comments
 (0)