From ee16173865f0a2cf084ac75929f9bbbce3148389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Tue, 29 Jul 2025 15:06:27 +0200 Subject: [PATCH] (fix): Update fallbackRequestHandler type to match _requestHandlers leaves type (#784) --- 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.