Skip to content

Commit 3135e9a

Browse files
dhritzkivsaihaj
andauthored
Fix typo in jsdoc comment; flip "objects are keys" to "keys are objects" (#265)
* Update index.d.ts * add changeset Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent 5b740e4 commit 3135e9a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/great-swans-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dataloader": patch
3+
---
4+
5+
Fix typo in jsdoc comment; flip "objects are keys" to "keys are objects"

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ declare namespace DataLoader {
106106

107107
/**
108108
* Default `key => key`. Produces cache key for a given load key. Useful
109-
* when objects are keys and two objects should be considered equivalent.
109+
* when keys are objects and two objects should be considered equivalent.
110110
*/
111111
cacheKeyFn?: (key: K) => C,
112112

0 commit comments

Comments
 (0)