(fix): Update fallbackRequestHandler type to match _requestHandlers leaves type (#784)
This commit is contained in:
parent
222db4a9c1
commit
ee16173865
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue