diff --git a/packages/ui/src/utils/merge-fns.ts b/packages/ui/src/utils/merge-fns.ts index 0263db5..5806ffd 100644 --- a/packages/ui/src/utils/merge-fns.ts +++ b/packages/ui/src/utils/merge-fns.ts @@ -1,7 +1,7 @@ -type AnyFunction = (...args: T[]) => any; - -export function mergeFns(...fns: (T | undefined)[]) { - return (...args: Parameters) => { +export function mergeFns any>( + ...fns: (T | undefined)[] +) { + return function mergedFns(...args: Parameters) { fns.forEach((fn) => { fn?.(...args); });