make linter happy

This commit is contained in:
Aine
2025-06-18 16:36:52 +03:00
parent ef41275cf0
commit bad79df298
37 changed files with 83 additions and 126 deletions

View File

@@ -69,7 +69,7 @@ export const FetchConfig = async () => {
// load config from context
// we deliberately processing each key separately to avoid overwriting the whole config, losing some keys, and messing
// with typescript types
export const LoadConfig = (context: any) => {
export const LoadConfig = (context: object) => {
if (context?.restrictBaseUrl) {
config.restrictBaseUrl = context.restrictBaseUrl as string | string[];
}

View File

@@ -4,10 +4,10 @@
* @returns The decoded string, or the original string if decoding fails.
* @example decodeURIComponent("Hello%20World") // "Hello World"
*/
const decodeURLComponent = (str: any): any => {
const decodeURLComponent = (str: string): string => {
try {
return decodeURIComponent(str);
} catch (e) {
} catch {
return str;
}
};