diff --git a/packages/async-flow/src/types.d.ts b/packages/async-flow/src/types.d.ts index 661462df49ef..09005178a78d 100644 --- a/packages/async-flow/src/types.d.ts +++ b/packages/async-flow/src/types.d.ts @@ -55,7 +55,11 @@ type HostInterface = { * Convert an entire Host interface into what the Guest will receive. */ export type GuestInterface = { - [K in keyof T]: GuestOf; + [K in keyof T]: T[K] extends HostAsyncFuncWrapper + ? GuestOf + : T[K] extends object + ? GuestInterface + : T[K]; }; /**