Commit 9954de93 authored by Robert Knight's avatar Robert Knight

Replace Record<K,V> with Object<K,v>

Both are functionally equivalent in this code, but we're using `Object<K,V>`
elsewhere, so prefer that for consistency.
parent 7e245b68
...@@ -27,7 +27,7 @@ import { TextQuoteAnchor } from './types'; ...@@ -27,7 +27,7 @@ import { TextQuoteAnchor } from './types';
/** /**
* Map of page index to page text content. * Map of page index to page text content.
* *
* @type {Record<number,Promise<string>>} * @type {Object<number,Promise<string>>}
*/ */
let pageTextCache = {}; let pageTextCache = {};
...@@ -39,7 +39,7 @@ let pageTextCache = {}; ...@@ -39,7 +39,7 @@ let pageTextCache = {};
* to speed up re-anchoring an annotation that was previously anchored in the * to speed up re-anchoring an annotation that was previously anchored in the
* current session. * current session.
* *
* @type {Record<string, Record<number, PdfTextRange>>} * @type {Object<string, Object<number, PdfTextRange>>}
*/ */
let quotePositionCache = {}; let quotePositionCache = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment