Skip to content

Commit

Permalink
Fix channel upgrader typings
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Oct 17, 2024
1 parent fb8e65a commit 22d591c
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 @@ -121,7 +121,7 @@ export interface ProxyOptions<TInstance extends Actor> {
export type PromisifyKey<key extends keyof Actor, Actor> = Actor[key] extends
(...args: infer Args) => Awaited<infer Return>
? Return extends ChannelUpgrader<infer TSend, infer TReceive>
? (...args: Args) => DuplexChannel<TSend, TReceive>
? (...args: Args) => DuplexChannel<TReceive, TSend>
: (...args: Args) => Promise<Return>
: Actor[key];

Expand Down

0 comments on commit 22d591c

Please sign in to comment.