From 921a2c77ea993a20f67a80b7be8759fd88e38d97 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Thu, 17 Oct 2024 09:29:15 -0300 Subject: [PATCH] Allow void return on upgrader Signed-off-by: Marcos Candeia --- src/actors/util/channels/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actors/util/channels/channel.ts b/src/actors/util/channels/channel.ts index 4f03ab7..10778b0 100644 --- a/src/actors/util/channels/channel.ts +++ b/src/actors/util/channels/channel.ts @@ -140,7 +140,7 @@ export interface DuplexChannel extends Disposable { */ export type ChannelUpgrader = ( ch: DuplexChannel, -) => Promise; +) => Promise | void; // deno-lint-ignore no-explicit-any export type Message = TMessageProperties & {