Fix cancelled notification method name

This commit is contained in:
Justin Spahr-Summers 2024-11-14 14:07:16 +00:00
commit 15bd2dc7aa
No known key found for this signature in database

View file

@ -162,7 +162,7 @@ export const EmptyResultSchema = ResultSchema.strict();
* A client MUST NOT attempt to cancel its `initialize` request.
*/
export const CancelledNotificationSchema = NotificationSchema.extend({
method: z.literal("cancelled"),
method: z.literal("notifications/cancelled"),
params: BaseNotificationParamsSchema.extend({
/**
* The ID of the request to cancel.