From 2be18f4f1777d9f619cbf5d921ec768f777d0469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Fri, 18 Jul 2025 21:45:45 +0200 Subject: [PATCH] Update fallbackRequestHandler type to match _requestHandlers leaves type --- src/shared/protocol.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shared/protocol.ts b/src/shared/protocol.ts index 6142140d..b19a6c5c 100644 --- a/src/shared/protocol.ts +++ b/src/shared/protocol.ts @@ -217,7 +217,10 @@ export abstract class Protocol< /** * A handler to invoke for any request types that do not have their own handler installed. */ - fallbackRequestHandler?: (request: Request) => Promise; + fallbackRequestHandler?: ( + request: JSONRPCRequest, + extra: RequestHandlerExtra + ) => Promise; /** * A handler to invoke for any notification types that do not have their own handler installed.