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 */