Skip to content

Commit

Permalink
Fix typo in jsdoc comment; flip "objects are keys" to "keys are objec…
Browse files Browse the repository at this point in the history
…ts" (#265)

* Update index.d.ts
* add changeset

Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
  • Loading branch information
dhritzkiv and saihaj authored Apr 8, 2022
1 parent 5b740e4 commit 3135e9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-swans-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dataloader": patch
---

Fix typo in jsdoc comment; flip "objects are keys" to "keys are objects"
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ declare namespace DataLoader {

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

Expand Down

0 comments on commit 3135e9a

Please sign in to comment.