Skip to content

Commit 6d7c4ee

Browse files
committed
Fix pEachCallback type
1 parent 41257cb commit 6d7c4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/promises.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { arrayChunk } from './arrays'
22

33
type pOptions = { signal: AbortSignal }
4-
type pEachCallback = (value: any, options?: pOptions) => Promise<void>
4+
type pEachCallback = (value: any, options?: pOptions) => Promise<any>
55

66
export async function pEach<T>(
77
array: T[],

0 commit comments

Comments
 (0)