extend onBeforeConnect type to allow void & null & false

This commit is contained in:
peterkogo
2025-08-19 15:14:39 +02:00
parent 65caf56c76
commit 1eba8d5a78
2 changed files with 3 additions and 3 deletions
@@ -98,7 +98,7 @@
});
function onConnectExtended(connection: Connection) {
const edge = store.onbeforeconnect?.(connection) ?? connection;
const edge = store.onbeforeconnect ? store.onbeforeconnect(connection) : connection;
if (!edge) {
return;