agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts

10 lines
377 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
import { ZodLiteralDef } from 'zod';
import { Refs } from "../Refs.js";
export type JsonSchema7LiteralType = {
type: 'string' | 'number' | 'integer' | 'boolean';
const: string | number | boolean;
} | {
type: 'object' | 'array';
};
export declare function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7LiteralType;
//# sourceMappingURL=literal.d.ts.map