( schema: ZodObjectOrWrapped, )
| 83 | } |
| 84 | |
| 85 | export function getObjectFormSchema( |
| 86 | schema: ZodObjectOrWrapped, |
| 87 | ): z.ZodObject<any, any> { |
| 88 | if (schema?._def.typeName === "ZodEffects") { |
| 89 | const typedSchema = schema as z.ZodEffects<z.ZodObject<any, any>>; |
| 90 | return getObjectFormSchema(typedSchema._def.schema); |
| 91 | } |
| 92 | return schema as z.ZodObject<any, any>; |
| 93 | } |
| 94 | |
| 95 | function isIndex(value: unknown): value is number { |
| 96 | return Number(value) >= 0; |
nothing calls this directly
no outgoing calls
no test coverage detected