From 4ce5ec02e671559d8a4806c9dcd0168d92dec3d3 Mon Sep 17 00:00:00 2001 From: CasVT Date: Thu, 26 Jun 2025 17:57:21 +0200 Subject: [PATCH] Fix type hint of general fetch functions --- frontend/static/js/general.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/static/js/general.js b/frontend/static/js/general.js index 492a8df..046032a 100644 --- a/frontend/static/js/general.js +++ b/frontend/static/js/general.js @@ -58,7 +58,7 @@ const defaultValues = { * @param {string | string[] | null | undefined} keys The keys to fetch, or all * if null or undefined. * - * @returns {Map} The keys and their values. + * @returns {Object} The keys and their values. */ function getLocalStorage(keys) { const storage = JSON.parse(localStorage.getItem('MIND')) @@ -79,7 +79,7 @@ function getLocalStorage(keys) { /** * Update the configuration stored in the local storage of the client (browser). - * @param {Map} keys_values The new values for the given keys. + * @param {Object} keys_values The new values for the given keys. */ function setLocalStorage(keys_values) { const storage = JSON.parse(localStorage.getItem('MIND')) @@ -121,7 +121,7 @@ function setupLocalStorage() { * @param {string} endpoint The endpoint to make the request to, without API URL * prefix. * - * @param {Map} params The URL parameters to use in the request. + * @param {Object} params The URL parameters to use in the request. * API key doesn't need to be supplied. * * @param {bool} jsonReturn Whether to return the json response, or the raw @@ -167,7 +167,7 @@ async function fetchAPI(endpoint, params={}, jsonReturn=true, checkAuth=true) { * @param {string} endpoint The endpoint to make the request to, without API URL * prefix. * - * @param {Map} params The URL parameters to use in the request. + * @param {Object} params The URL parameters to use in the request. * API key doesn't need to be supplied. * * @param {any} body The JSON to supply in the body of the request.