add server capabilities derivation
This commit is contained in:
parent
dcc30bea49
commit
bcb4b219ee
1 changed files with 46 additions and 10 deletions
4
dist/shared/protocol.d.ts
generated
vendored
4
dist/shared/protocol.d.ts
generated
vendored
|
|
@ -1,5 +1,5 @@
|
|||
import { AnyZodObject, ZodLiteral, ZodObject, z } from "zod";
|
||||
import { Notification, Progress, Request, Result } from "../types.js";
|
||||
import { JSONRPCRequest, Notification, Progress, Request, Result } from "../types.js";
|
||||
import { Transport } from "./transport.js";
|
||||
/**
|
||||
* Callback for progress notifications.
|
||||
|
|
@ -12,7 +12,7 @@ export type ProgressCallback = (progress: Progress) => void;
|
|||
export declare class Protocol<SendRequestT extends Request, SendNotificationT extends Notification, SendResultT extends Result> {
|
||||
private _transport?;
|
||||
private _requestMessageId;
|
||||
private _requestHandlers;
|
||||
protected _requestHandlers: Map<string, (request: JSONRPCRequest) => Promise<SendResultT>>;
|
||||
private _notificationHandlers;
|
||||
private _responseHandlers;
|
||||
private _progressHandlers;
|
||||
|
|
|
|||
Loading…
Reference in a new issue