Skip to content

Commit e2e7282

Browse files
committed
chore: fix flow error
1 parent ab06a20 commit e2e7282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class DataLoader<K, V, C = K> {
8181

8282
const batch = getCurrentBatch(this);
8383
const cacheMap = this._cacheMap;
84-
let cacheKey;
84+
let cacheKey: ?C;
8585

8686
// If caching and there is a cache-hit, return cached Promise.
8787
if (cacheMap) {
@@ -106,7 +106,7 @@ class DataLoader<K, V, C = K> {
106106

107107
// If caching, cache this promise.
108108
if (cacheMap) {
109-
cacheMap.set(cacheKey, promise);
109+
cacheMap.set((cacheKey: any), promise);
110110
}
111111

112112
return promise;

0 commit comments

Comments
 (0)