Skip to content

Commit

Permalink
Revert "bug: removes type override from defineAction" (#11335)
Browse files Browse the repository at this point in the history
* Revert "bug: removes type override from defineAction (#11292)"

This reverts commit 7f8f347.

* changeset
  • Loading branch information
ematipico authored Jun 25, 2024
1 parent 6ebc6c8 commit 4c4741b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-rivers-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Reverts [#11292](https://github.com/withastro/astro/pull/11292), which caused a regression to the input type
2 changes: 1 addition & 1 deletion packages/astro/src/actions/runtime/virtual/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4c4741b

Please sign in to comment.