From 387cbc0b259fe193f97e065815c137f19aa581e9 Mon Sep 17 00:00:00 2001 From: tone <3341154833@qq.com> Date: Wed, 15 Oct 2025 16:32:09 +0800 Subject: [PATCH] fix: update ToDeepPromise type to use Awaited for promise resolution --- src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 03ca6e7..625c35b 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -10,7 +10,7 @@ export type ObjectType = Record; export type ToDeepPromise = { [K in keyof T]: T[K] extends (...args: infer P) => infer R - ? (...args: P) => Promise + ? (...args: P) => Promise> : T[K] extends object ? ToDeepPromise : T[K]