Skip to content

Commit a685c59

Browse files
committed
chore: add comment
1 parent 5da639a commit a685c59

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: src/store.ts

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ export class Store {
262262
return iterator
263263
}
264264

265+
// We can't use `async/await` here because that would make the signature
266+
// incompatible with one of the overloads.
265267
// eslint-disable-next-line promise/prefer-await-to-then
266268
return collectIterator(iterator).then((items) =>
267269
items.reduce(

Diff for: src/store_list.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function listStores(
1919
return iterator
2020
}
2121

22+
// We can't use `async/await` here because that would make the signature
23+
// incompatible with one of the overloads.
2224
// eslint-disable-next-line promise/prefer-await-to-then
2325
return collectIterator(iterator).then((results) =>
2426
results.reduce(

0 commit comments

Comments
 (0)