Skip to content

Commit fa4495f

Browse files
committed
fix: type aggregator helper
1 parent a444fb6 commit fa4495f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const aggregator = (paths: any, object: any) => {
2-
return paths.reduce((delta: any, path: any) => {
1+
export const aggregator = (paths: string[], object: any) => {
2+
return paths.reduce((delta, path) => {
33
return set(delta, path, get(object, path));
44
}, {});
55
};

0 commit comments

Comments
 (0)