Skip to content

Conversation

hossam-nasr
Copy link
Contributor

Change the default type of context.res from { [key: string]: any } (very generic and not very helpful) to leverage the new HttpRespone types introduced in #529. This is a breaking change, so was left to a separate PR. See the discussion there for why this is a breaking change and the different workarounds. Moving discussion here on when/how/if we want to make this change.

@hossam-nasr hossam-nasr requested a review from ejizba March 4, 2022 19:54
/**
* HTTP response object. Provided to your function when using HTTP Bindings.
*/
res?: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this change happening any time soon. Unless you disagree, I think that means this should be tracked as an issue instead of a PR

@hossam-nasr
Copy link
Contributor Author

Closing this PR in favor of #551 as per @ejizba 's suggestion.

@hossam-nasr hossam-nasr closed this Mar 4, 2022
@ejizba ejizba deleted the hossamnasr/context-res-type branch May 29, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants