0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

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

* Revert "bug: removes type override from defineAction (#11292)"

This reverts commit 7f8f347995.

* changeset
This commit is contained in:
Emanuele Stoppa 2024-06-25 12:31:13 +01:00 committed by GitHub
parent 6ebc6c85de
commit 4c4741b42d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Reverts [#11292](https://github.com/withastro/astro/pull/11292), which caused a regression to the input type

View file

@ -50,7 +50,7 @@ export type ActionClient<
export function defineAction<
TOutput,
TAccept extends Accept,
TAccept extends Accept = 'json',
TInputSchema extends InputSchema<Accept> | undefined = TAccept extends 'form'
? // If `input` is omitted, default to `FormData` for forms and `any` for JSON.
z.ZodType<FormData>