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

11 lines
450 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { ZodNullableDef } from 'zod';
import { JsonSchema7Type } from "../parseDef.js";
import { Refs } from "../Refs.js";
import { JsonSchema7NullType } from "./null.js";
export type JsonSchema7NullableType = {
anyOf: [JsonSchema7Type, JsonSchema7NullType];
} | {
type: [string, 'null'];
};
export declare function parseNullableDef(def: ZodNullableDef, refs: Refs): JsonSchema7NullableType | undefined;
//# sourceMappingURL=nullable.d.ts.map