({ shape, error })
| 86 | .create({ |
| 87 | transformer: superjson, |
| 88 | errorFormatter({ shape, error }) { |
| 89 | return { |
| 90 | ...shape, |
| 91 | data: { |
| 92 | ...shape.data, |
| 93 | zodError: error.cause instanceof ZodError ? error.cause.flatten() : null, |
| 94 | }, |
| 95 | }; |
| 96 | }, |
| 97 | }); |
| 98 | |
| 99 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected