Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: removes type override from defineAction #11292

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

jdtjenkins
Copy link
Contributor

Changes

This PR removes the type override for the accept parameter in the defineAction Actions function.

Fernando Herrera pointed out earlier that the accept param for defineAction only suggested json in the intellisense instead of both json and form.

Now I'm not going to pretend I understand everything going on in the typing for the accept param here. But I'm pretty sure the = 'json' here is redundant.

https://discord.com/channels/830184174198718474/1252972140161142816/1252996832238506056

Before:
image

After:
image

Testing

No tests are necessary here I think?

Docs

No docs are necessary as I think this is a bug fix?

@jdtjenkins jdtjenkins requested a review from bholmesdev June 19, 2024 21:55
Copy link

changeset-bot bot commented Jun 19, 2024

🦋 Changeset detected

Latest commit: 94222e7

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jun 19, 2024
@jdtjenkins jdtjenkins added the - P2: nice to have Not breaking anything but nice to have (priority) label Jun 19, 2024
@jdtjenkins jdtjenkins self-assigned this Jun 19, 2024
.changeset/quiet-doors-eat.md Outdated Show resolved Hide resolved
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
@ematipico ematipico merged commit 7f8f347 into withastro:main Jun 20, 2024
12 of 13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Jun 20, 2024
ematipico added a commit that referenced this pull request Jun 25, 2024
ematipico added a commit that referenced this pull request Jun 25, 2024
* Revert "bug: removes type override from defineAction (#11292)"

This reverts commit 7f8f347.

* changeset
@astrobot-houston astrobot-houston mentioned this pull request Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P2: nice to have Not breaking anything but nice to have (priority) pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants