Skip to content

Commit 80396ee

Browse files
tgriesserleebyron
authored andcommitted
Loosen up BatchLoadFn type definition Promise -> PromiseLike (#146)
1 parent bf23eb9 commit 80396ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ declare namespace DataLoader {
7070

7171
// A Function, which when given an Array of keys, returns a Promise of an Array
7272
// of values or Errors.
73-
export type BatchLoadFn<K, V> = (keys: K[]) => Promise<Array<V | Error>>;
73+
export type BatchLoadFn<K, V> = (keys: K[]) => PromiseLike<Array<V | Error>>;
7474

7575
// Optionally turn off batching or caching or provide a cache key function or a
7676
// custom cache instance.

0 commit comments

Comments
 (0)