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:
parent
6ebc6c85de
commit
4c4741b42d
2 changed files with 6 additions and 1 deletions
5
.changeset/afraid-rivers-begin.md
Normal file
5
.changeset/afraid-rivers-begin.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Reverts [#11292](https://github.com/withastro/astro/pull/11292), which caused a regression to the input type
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue