Skip to content

Commit edcfbb2

Browse files
committed
fix: type
1 parent 3e5d6db commit edcfbb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
ErrorCode,
3939
McpError
4040
} from '../types.js';
41-
import { Validator } from '@cfworker/json-schema';
41+
import { Validator, Schema } from '@cfworker/json-schema';
4242

4343
export type ClientOptions = ProtocolOptions & {
4444
/**
@@ -377,7 +377,7 @@ export class Client<
377377
// If the tool has an outputSchema, create and cache the validator
378378
if (tool.outputSchema) {
379379
try {
380-
const validator = new Validator(tool.outputSchema as any, '2020-12');
380+
const validator = new Validator(tool.outputSchema as Schema, '2020-12');
381381
this._cachedToolOutputValidators.set(tool.name, validator);
382382
} catch {
383383
// Ignore schema compilation errors

0 commit comments

Comments
 (0)