withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
43.84k stars 2.28k forks source link

Revert "bug: removes type override from defineAction" #11335

Closed ematipico closed 3 days ago

ematipico commented 3 days ago

Reverts withastro/astro#11292

changeset-bot[bot] commented 3 days ago

🦋 Changeset detected

Latest commit: 913201fa216fb0002a5b2cba71ef67b98a062c76

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

bholmesdev commented 3 days ago

This was reverted due to incorrect types when the input parameter is omitted. The input should default to type unknown, but instead became unknown | FormData. This is because json was no longer assigned as the default.

We’ll need to take a different path to fix the bug in the original PR.