i can see in the documentation ( https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations ) at Closures and encryption action is used on the button.
<button action={publish}>
but if i try to use it get TS error that action is not allowed on the button.
is there some sort of set-up require to use action on the button or is it doc issue ?