From 3135e9a02490c9e09ffa02f66bc9a11fce65479a Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Fri, 8 Apr 2022 16:05:10 -0400 Subject: [PATCH] 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 --- .changeset/great-swans-ring.md | 5 +++++ src/index.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/great-swans-ring.md diff --git a/.changeset/great-swans-ring.md b/.changeset/great-swans-ring.md new file mode 100644 index 0000000..6aeb4a7 --- /dev/null +++ b/.changeset/great-swans-ring.md @@ -0,0 +1,5 @@ +--- +"dataloader": patch +--- + +Fix typo in jsdoc comment; flip "objects are keys" to "keys are objects" diff --git a/src/index.d.ts b/src/index.d.ts index 71c2bdb..ee3c8b6 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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,