`createServerFn` Zod validation works, but TS doesn’t catch invalid params at callsite?
I'm using createServerFn from
Example code
I can call it with whatever params I want, what am I missing
@tanstack/react-start with Zod validation to define sendEmailFn. Everything works at runtime (thanks to .validator(...)), but TypeScript doesn't enforce the parameter shape when calling sendEmailFn()—I can omit fields or add invalid ones, and TS doesn’t complain. Only Zod throws at runtime. Why isn't TypeScript checking the input types at compile-time?Example code
I can call it with whatever params I want, what am I missing