Skip to content

Commit 0562e50

Browse files
committed
Fix some JSDoc links.
1 parent b31cd17 commit 0562e50

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Updated GitHub Actions CI config:
1515
- Run tests with Node.js v14, v16, v18.
1616
- Fixed the `fetchGraphQL` test with the global `fetch` API unavailable for new versions of Node.js that have the `fetch` global.
17+
- Fixed some JSDoc links.
1718

1819
## 18.0.0
1920

useCacheEntryPrunePrevention.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import React from "react";
55
import useCache from "./useCache.mjs";
66

77
/** @typedef {import("./Cache.mjs").default} Cache */
8+
/** @typedef {import("./Cache.mjs").CacheEventMap} CacheEventMap */
89

910
/**
1011
* React hook to prevent a {@link Cache.store cache store} entry from being
1112
* pruned, by canceling the cache entry deletion for
12-
* {@link Cache#event:prune prune events} with `event.preventDefault()`.
13+
* {@link CacheEventMap.prune `prune`} events with `event.preventDefault()`.
1314
* @param {import("./Cache.mjs").CacheKey} cacheKey Cache key.
1415
*/
1516
export default function useCacheEntryPrunePrevention(cacheKey) {

useLoadOnDelete.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import React from "react";
55
import useCache from "./useCache.mjs";
66

77
/** @typedef {import("./Cache.mjs").CacheKey} CacheKey */
8+
/** @typedef {import("./Cache.mjs").CacheEventMap} CacheEventMap */
89

910
/**
1011
* React hook to load a {@link Cache.store cache store} entry after it’s
11-
* {@link Cache#event:delete deleted}, if there isn’t loading for the
12+
* {@link CacheEventMap.delete deleted}, if there isn’t loading for the
1213
* {@link CacheKey cache key} that started after.
1314
* @param {CacheKey} cacheKey Cache key.
1415
* @param {import("./types.mjs").Loader} load Memoized function that starts the

useLoadOnStale.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import React from "react";
55
import useCache from "./useCache.mjs";
66

77
/** @typedef {import("./Cache.mjs").CacheKey} CacheKey */
8+
/** @typedef {import("./Cache.mjs").CacheEventMap} CacheEventMap */
89

910
/**
1011
* React hook to load a {@link Cache.store cache store} entry after becomes
11-
* {@link Cache#event:stale stale}, if there isn’t loading for the
12+
* {@link CacheEventMap.stale stale}, if there isn’t loading for the
1213
* {@link CacheKey cache key} that started after.
1314
* @param {CacheKey} cacheKey Cache key.
1415
* @param {import("./types.mjs").Loader} load Memoized function that starts the

0 commit comments

Comments
 (0)