Skip to content

Commit

Permalink
(Docs) Remove FormData type on formData defined in .js file (#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaykulk621 committed Jul 24, 2023
1 parent 2cd0c8a commit c355fb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function ExampleServerComponent({ id }) {
'use client'

function ExampleClientComponent({ updateItem }) {
async function action(formData: FormData) {
async function action(formData) {
await updateItem(formData)
}

Expand Down Expand Up @@ -497,7 +497,7 @@ export const action = withValidate((data) => {
```js filename="lib/form-validation.js"
export function withValidate(action) {
return async (formData: FormData) => {
return async (formData) => {
'use server'

const isValidData = verifyData(formData)
Expand Down

0 comments on commit c355fb1

Please sign in to comment.