diff --git a/src/index.d.ts b/src/index.d.ts index d693354..15fa5e9 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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 = - (keys: ArrayLike) => PromiseLike>; + (keys: ReadonlyArray) => PromiseLike>; // Optionally turn off batching or caching or provide a cache key function or a // custom cache instance.