@asteasolutions/zod-to-openapi
Version:
Builds OpenAPI schemas from Zod schemas
7 lines (6 loc) • 366 B
TypeScript
import { MapNullableOfArrayWithNullable, MapSubSchema, SchemaObject } from '../types';
import { ZodIntersection } from 'zod';
export declare class IntersectionTransformer {
transform(zodSchema: ZodIntersection, isNullable: boolean, mapNullableOfArray: MapNullableOfArrayWithNullable, mapItem: MapSubSchema): SchemaObject;
private flattenIntersectionTypes;
}