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

11 lines
No EOL
450 B
TypeScript

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