Next.js Discord

Discord Forum

Typescriopt 5.6.3 throws error on formAction

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Avatar
Spectacled bearOP
Just updated from Typescript 5.6.2 to 5.6.3 using the next supase starter. On the SingUpAction following error appears after the update:

Type '(formData: FormData) => Promise<{ error: string; }>' is not assignable to type 'string | ((formData: FormData) => void | Promise<void>) | undefined'. Type '(formData: FormData) => Promise<{ error: string; }>' is not assignable to type '(formData: FormData) => void | Promise<void>'. Type 'Promise<{ error: string; }>' is not assignable to type 'void | Promise<void>'. Type 'Promise<{ error: string; }>' is not assignable to type 'Promise<void>'. Type '{ error: string; }' is not assignable to type 'void'.ts(2322)

0 Replies