fix: add missing return type

This commit is contained in:
yassinedorbozgithub
2025-05-06 14:12:45 +01:00
parent 79b674f2f3
commit b200fbf6da

View File

@@ -17,7 +17,7 @@ export const flatten = (
data: object,
prefix: string | undefined = undefined,
result: object = {},
) => {
): object => {
for (const [key, value] of Object.entries(data)) {
const path = prefix ? `${prefix}.${key}` : key;