From 93a94a18e86e138d3a5af747031be25024098964 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Wed, 2 May 2018 12:09:01 -0400 Subject: [PATCH] Loosen up BatchLoadFn type definition Promise -> PromiseLike --- 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 682f794..643623c 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -72,7 +72,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: K[]) => Promise>; + export type BatchLoadFn = (keys: K[]) => PromiseLike>; // Optionally turn off batching or caching or provide a cache key function or a // custom cache instance.