mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: add missing return type
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user