(schema: z.ZodTypeAny)
| 317 | } |
| 318 | |
| 319 | function getObjectShape(schema: z.ZodTypeAny): Record<string, z.ZodTypeAny> { |
| 320 | const shape = (schema as any).shape; |
| 321 | if (typeof shape === 'function') { |
| 322 | return shape(); |
| 323 | } |
| 324 | return shape ?? {}; |
| 325 | } |
no outgoing calls
no test coverage detected