I was building an next app and I’m using “zod” for data validation and I installed “next-safe-action” package and when I try to make “createSafeActionClient” instance and passing data validation schema to it typescript warning me with message says “This expression is not callable.
Type ‘SafeActionClient<string, undefined, undefined, undefined, undefined, undefined, undefined, readonly [], { formErrors: string[]; fieldErrors: {}; } | undefined, readonly []>’ has no call signatures.”
This is the code
I tried to read “next-safe-action” docs but I got nothing about that
Tawfik Tarek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.