createServerFn with generic validators and return types
I created some builder functions to reduce this boilerplate, but I can't seem to get past this strange TS error in the
handler()Here's a small reproduction of the issue attached.
If anyone knows what the issue could be / how to fix it, I would really appreciate a few pointers :))