Skip to content

Commit

Permalink
[FIX] Returns the keys type of the batch fn to ReadonlyArray (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Nov 14, 2019
1 parent 43be632 commit 44977c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Expand Up @@ -71,7 +71,7 @@ declare namespace DataLoader {
// A Function, which when given an Array of keys, returns a Promise of an Array
// of values or Errors.
export type BatchLoadFn<K, V> =
(keys: ArrayLike<K>) => PromiseLike<ArrayLike<V | Error>>;
(keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;

// Optionally turn off batching or caching or provide a cache key function or a
// custom cache instance.
Expand Down

0 comments on commit 44977c0

Please sign in to comment.