File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export type CompletableSchema<T extends ZodTypeAny> = T & { _def: T['_def'] & Co
2626 * Type guard to check if a schema has been wrapped with completion capabilities. 
2727 */ 
2828export  function  isCompletable < T  extends  ZodTypeAny > ( schema : ZodTypeAny ) : schema  is CompletableSchema < T >  { 
29-     const  defLike  =  ( schema  as  any ) . _def ; 
29+     const  defLike  =  ( schema  as  {   _def ?:  {   typeName ?:  unknown   }   } ) . _def ; 
3030    return  defLike ?. typeName  ===  McpZodTypeKind . Completable ; 
3131} 
3232
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import {
3232    ToolAnnotations , 
3333    LoggingMessageNotification 
3434}  from  '../types.js' ; 
35- import  {  CompletableDef ,   isCompletable  }  from  './completable.js' ; 
35+ import  {  isCompletable  }  from  './completable.js' ; 
3636import  {  UriTemplate ,  Variables  }  from  '../shared/uriTemplate.js' ; 
3737import  {  RequestHandlerExtra  }  from  '../shared/protocol.js' ; 
3838import  {  Transport  }  from  '../shared/transport.js' ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments