Skip to content

Commit

Permalink
fix: type aggregator helper
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Feb 23, 2019
1 parent a444fb6 commit fa4495f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const aggregator = (paths: any, object: any) => {
return paths.reduce((delta: any, path: any) => {
export const aggregator = (paths: string[], object: any) => {
return paths.reduce((delta, path) => {
return set(delta, path, get(object, path));
}, {});
};
Expand Down

0 comments on commit fa4495f

Please sign in to comment.