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

feat!: add v2 API #351

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

feat!: add v2 API #351

wants to merge 14 commits into from

Conversation

eduardoboucas
Copy link
Member

@eduardoboucas eduardoboucas added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 12, 2022
ndhoule added a commit to ndhoule/functions that referenced this pull request Jan 18, 2024
Per the [functions documentation][1], it seems like you should be able
to return a standard `Response` object from function handlers. However,
the existing types only allows a user to return a `HandlerResponse`
object.

This updates the Handler type to accept both types as a return value.

(It looks like netlify#351 also
addresses this issue, but that PR is a little stale at this point.)

[1]: https://docs.netlify.com/functions/get-started/?fn-language=ts#synchronous-function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant