feat: assert type of values to any[]
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user