From f4bb78b51cabcd7b67d2e000f22d561d38a59acf Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 5 Feb 2026 15:16:13 -0800 Subject: [PATCH] Update types in JSDoc --- javascript/indexdb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/indexdb.js b/javascript/indexdb.js index 81c165f74..4e11e1498 100644 --- a/javascript/indexdb.js +++ b/javascript/indexdb.js @@ -144,10 +144,10 @@ async function idbGetAllKeys(index = null, query = null) { /** * Get the number of entries in the IndexedDB thumbnail cache. * @global - * @param {?string} folder - If specified, get the count for this gallery folder. Otherwise get the total count. + * @param {IDBValidKey | IDBKeyRange | undefined} folder - If specified, get the count for this gallery folder. Otherwise get the total count. * @returns {Promise} */ -async function idbCount(folder = null) { +async function idbCount(folder) { if (!db) return null; return new Promise((resolve, reject) => { try { @@ -173,7 +173,7 @@ async function idbCount(folder = null) { * Cleanup function for IndexedDB thumbnail cache. * @global * @param {Set} keepSet - Set containing the hashes of the current files in the folder - * @param {string} folder - Folder name/path + * @param {IDBValidKey | IDBKeyRange} folder - Folder name/path or range * @param {AbortSignal} signal - Signal from the AbortController for thumbCacheCleanup() */ async function idbFolderCleanup(keepSet, folder, signal) {