Skip to content

Commit 3135e9a

Browse files
dhritzkivsaihaj
andauthoredApr 8, 2022
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 <saihajpreet.singh@gmail.com>
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

+5
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

+1-1
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)
Please sign in to comment.