From d870a722ca09b3522a824230697b29544dd80780 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 21 Sep 2024 22:16:29 +0530 Subject: [PATCH] feat: assert type of values to any[] --- maxun-core/src/preprocessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxun-core/src/preprocessor.ts b/maxun-core/src/preprocessor.ts index 7c31004e..7957c06b 100644 --- a/maxun-core/src/preprocessor.ts +++ b/maxun-core/src/preprocessor.ts @@ -60,7 +60,7 @@ export default class Preprocessor { } // Recursion general case - return Object.values(object) + return (Object.values(object) as any[]) .reduce((p: string[], v: any): string[] => [...p, ...getParamsRecurse(v)], []); } return [];