make linter happy
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user