(schema: z.ZodTypeAny)
| 148 | } |
| 149 | |
| 150 | function getInnerType(schema: z.ZodTypeAny) { |
| 151 | switch (schema.constructor) { |
| 152 | case z.ZodOptional: |
| 153 | case z.ZodDefault: |
| 154 | return schema._def.innerType; |
| 155 | default: |
| 156 | return schema; |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | function parseNumber(str: string): ParsedData<number> { |
| 161 | const num = +str; |
no outgoing calls
no test coverage detected