From 4fd9853eebf467c6b250ac277d22010fbf3ab9ec Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 14 Aug 2024 00:05:23 +0900 Subject: [PATCH] =?UTF-8?q?refactor(ui/utils):=20mergeFns=EC=9D=98=20?= =?UTF-8?q?=EB=B0=98=ED=99=98=EA=B0=92=20=ED=95=A8=EC=88=98=20=EC=84=A0?= =?UTF-8?q?=EC=96=B8=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#307)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/src/utils/merge-fns.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); });