From 9650e74814498c9650cf89f23dc5eb987d7e2cb4 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 10 Feb 2025 16:35:03 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20resolve=20operation=20overload?= =?UTF-8?q?=20before=20simple=20function=20overload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/call.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/call.ts b/lib/call.ts index 3b919ff3..50cd79c7 100644 --- a/lib/call.ts +++ b/lib/call.ts @@ -69,11 +69,12 @@ export function call( fn: (...args: TArgs) => Promise, ): Operation; export function call( - fn: (...args: TArgs) => T, + fn: (...args: TArgs) => Operation, ): Operation; export function call( - fn: (...args: TArgs) => Operation, + fn: (...args: TArgs) => T, ): Operation; + export function call( callable: Callable, ...args: TArgs