feat: assert type of values to any[]

This commit is contained in:
karishmas6
2024-09-21 22:16:29 +05:30
parent db95038645
commit d870a722ca

View File

@@ -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 [];