vercel / next-learn

Learn Next.js Starter Code
https://next-learn-dashboard.vercel.sh/
MIT License
3.81k stars 1.93k forks source link

Chatper 12 "FormSchema" should be "FormData" #884

Open yanUEd opened 1 month ago

yanUEd commented 1 month ago

Chatper 12

Then, in your actions.ts file, create a new action, updateInvoice:

// Use Zod to update the expected types const UpdateInvoice = FormSchema.omit({ id: true, date: true });

"FormSchema" should be "FormData"