Skip to content

Commit

Permalink
fix(utils): fix type error in merge
Browse files Browse the repository at this point in the history
Regression after updating TypeScript.
  • Loading branch information
norskeld committed Oct 14, 2022
1 parent dff5b26 commit 698f4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function merge<T extends AnyObject, U extends AnyObject>(target: T, sourc
})
}

return output as U
return output as unknown as U
}

export function groupBy<T, K>(elements: Array<T>, getter: (element: T) => K): Map<K, Array<T>> {
Expand Down

0 comments on commit 698f4b2

Please sign in to comment.