({ shape, error })
| 72 | .create({ |
| 73 | transformer: superjson, |
| 74 | errorFormatter({ shape, error }) { |
| 75 | return { |
| 76 | ...shape, |
| 77 | data: { |
| 78 | ...shape.data, |
| 79 | zodError: |
| 80 | error.cause instanceof z.ZodError ? error.cause.flatten() : null, |
| 81 | }, |
| 82 | }; |
| 83 | }, |
| 84 | }); |
| 85 | |
| 86 | export const createCallerFactory = t.createCallerFactory; |
nothing calls this directly
no outgoing calls
no test coverage detected