Skip to content

Commit e9e8e41

Browse files
authored
Update index.ts
Correct `Targets` import
1 parent 933be13 commit e9e8e41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
LoggingLevelSchema
3838
} from "../types.js";
3939
import Ajv from "ajv";
40-
import type { Target } from "zod-to-json-schema";
40+
import type { Targets } from "zod-to-json-schema";
4141

4242
export type ServerOptions = ProtocolOptions & {
4343
/**
@@ -53,7 +53,7 @@ export type ServerOptions = ProtocolOptions & {
5353
/**
5454
* Optional spec for JSON Schema to allow fully compatible use with OpenAI endpoints.
5555
*/
56-
jsonSchemaSpec?: Target;
56+
jsonSchemaSpec?: Targets;
5757
};
5858

5959
/**
@@ -94,7 +94,7 @@ export class Server<
9494
private _clientVersion?: Implementation;
9595
private _capabilities: ServerCapabilities;
9696
private _instructions?: string;
97-
public _jsonSchemaSpec?: Target = 'jsonSchema7';
97+
public _jsonSchemaSpec?: Targets = 'jsonSchema7';
9898

9999
/**
100100
* Callback for when initialization has fully completed (i.e., the client has sent an `initialized` notification).

0 commit comments

Comments
 (0)