(fix): Update fallbackRequestHandler type to match _requestHandlers leaves type (#784)

This commit is contained in:
Frédéric Barthelet 2025-07-29 15:06:27 +02:00 • committed by GitHub
commit ee16173865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<SendResultT>;
fallbackRequestHandler?: (
request: JSONRPCRequest,
extra: RequestHandlerExtra<SendRequestT, SendNotificationT>
) => Promise<SendResultT>;
/**
* A handler to invoke for any notification types that do not have their own handler installed.