From 0e31e317863948c51e3ba29f89a233d403ea6c1a Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 13 Sep 2022 22:32:29 -0400 Subject: [PATCH] fix(striker-ui-api): specify return type in call() --- striker-ui-api/src/lib/call.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/striker-ui-api/src/lib/call.ts b/striker-ui-api/src/lib/call.ts index 5a842e55..9b565907 100644 --- a/striker-ui-api/src/lib/call.ts +++ b/striker-ui-api/src/lib/call.ts @@ -1,9 +1,7 @@ const call = ( toCall: unknown, { parameters = [], notCallableReturn }: CallOptions = {}, -) => - (typeof toCall === 'function' - ? toCall(...parameters) - : notCallableReturn) as T; +): T => + typeof toCall === 'function' ? toCall(...parameters) : notCallableReturn; export default call;