(types: readonly z.ZodType[], minPrecedence: TypePrecedence)
| 217 | } |
| 218 | |
| 219 | function appendUnionOrIntersectionTypes(types: readonly z.ZodType[], minPrecedence: TypePrecedence) { |
| 220 | let first = true; |
| 221 | for (const type of types) { |
| 222 | if (!first) append(minPrecedence === TypePrecedence.Intersection ? " & " : " | "); |
| 223 | appendType(type, minPrecedence); |
| 224 | first = false; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | function appendTupleType(tupleType: z.ZodType) { |
| 229 | append("["); |
no test coverage detected