agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts
2024-10-02 15:15:21 -05:00

10 lines
No EOL
377 B
TypeScript

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