Support old tools/call result structure, if explicitly opted in
This commit is contained in:
parent
b618157c93
commit
1f3dbef66c
1 changed files with 14 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { AnyZodObject, ZodLiteral, ZodObject, z } from "zod";
|
||||
import { ZodLiteral, ZodObject, ZodType, z } from "zod";
|
||||
import {
|
||||
ErrorCode,
|
||||
JSONRPCError,
|
||||
|
|
@ -250,7 +250,7 @@ export class Protocol<
|
|||
*
|
||||
* Do not use this method to emit notifications! Use notification() instead.
|
||||
*/
|
||||
request<T extends AnyZodObject>(
|
||||
request<T extends ZodType<object>>(
|
||||
request: SendRequestT,
|
||||
resultSchema: T,
|
||||
onprogress?: ProgressCallback,
|
||||
|
|
|
|||
Loading…
Reference in a new issue