Skip to content

Commit

Permalink
Fix promise flatten
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Oct 20, 2024
1 parent 09bb8da commit 4693a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actors/proxyutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export type PromisifyKey<Actor, key extends keyof Actor> = Actor[key] extends
(...args: infer Args) => Awaited<infer Return>
? Return extends ChannelUpgrader<infer TSend, infer TReceive>
? { (...args: Args): DuplexChannel<TReceive, TSend> }
: { (...args: Args): Promise<Return> }
: { (...args: Args): Promise<Awaited<Return>> }
: Actor[key];

/**
Expand Down

0 comments on commit 4693a44

Please sign in to comment.