We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf23eb9 commit 80396eeCopy full SHA for 80396ee
src/index.d.ts
@@ -70,7 +70,7 @@ declare namespace DataLoader {
70
71
// A Function, which when given an Array of keys, returns a Promise of an Array
72
// of values or Errors.
73
- export type BatchLoadFn<K, V> = (keys: K[]) => Promise<Array<V | Error>>;
+ export type BatchLoadFn<K, V> = (keys: K[]) => PromiseLike<Array<V | Error>>;
74
75
// Optionally turn off batching or caching or provide a cache key function or a
76
// custom cache instance.
0 commit comments