UNPKG

@asteasolutions/zod-to-openapi

Version:
7 lines (6 loc) 402 B
import { MapNullableOfArrayWithNullable, MapSubSchema, SchemaObject } from '../types'; import { ZodIntersection, ZodTypeAny } from 'zod'; export declare class IntersectionTransformer { transform(zodSchema: ZodIntersection<ZodTypeAny, ZodTypeAny>, isNullable: boolean, mapNullableOfArray: MapNullableOfArrayWithNullable, mapItem: MapSubSchema): SchemaObject; private flattenIntersectionTypes; }