From 44977c08f44bd788c4e7d5a0b9310c86af7a3e7c Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Thu, 14 Nov 2019 10:55:04 -0800 Subject: [PATCH] [FIX] Returns the keys type of the batch fn to ReadonlyArray (#219) --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.