Skip to content

Commit ee16173

Browse files
(fix): Update fallbackRequestHandler type to match _requestHandlers leaves type (#784)
1 parent 222db4a commit ee16173

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared/protocol.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ export abstract class Protocol<
217217
/**
218218
* A handler to invoke for any request types that do not have their own handler installed.
219219
*/
220-
fallbackRequestHandler?: (request: Request) => Promise<SendResultT>;
220+
fallbackRequestHandler?: (
221+
request: JSONRPCRequest,
222+
extra: RequestHandlerExtra<SendRequestT, SendNotificationT>
223+
) => Promise<SendResultT>;
221224

222225
/**
223226
* A handler to invoke for any notification types that do not have their own handler installed.

0 commit comments

Comments
 (0)