From d82bef600e7187133c0ca796dfb956b75eb63358 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Mon, 28 Oct 2024 16:24:10 +0100 Subject: [PATCH] fix: export `WebSocketHandlerConnection` type --- src/core/handlers/WebSocketHandler.ts | 2 +- src/core/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/handlers/WebSocketHandler.ts b/src/core/handlers/WebSocketHandler.ts index 55f66def0..26d443872 100644 --- a/src/core/handlers/WebSocketHandler.ts +++ b/src/core/handlers/WebSocketHandler.ts @@ -17,7 +17,7 @@ export type WebSocketHandlerEventMap = { connection: [args: WebSocketHandlerConnection] } -interface WebSocketHandlerConnection extends WebSocketConnectionData { +export interface WebSocketHandlerConnection extends WebSocketConnectionData { params: PathParams } diff --git a/src/core/index.ts b/src/core/index.ts index 770b58b37..9cd723080 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -14,6 +14,7 @@ export { ws, type WebSocketLink } from './ws' export { WebSocketHandler, type WebSocketHandlerEventMap, + type WebSocketHandlerConnection, } from './handlers/WebSocketHandler' /* Utils */