You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to upgrade my function app to v4 of the Node.js model using TypeScript. I attempted to guess my way into doing this, but without success. Experienced errors like this:
Conversion of type '{ status: number; body: string; desc: any; ')': any; }' to type 'HttpResponse' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type '{ status: number; body: string; desc: any; ')': any; }' is missing the following properties from type 'HttpResponse': headers, cookies, enableContentNegotiation, bodyUsed, and 5 more.ts(2352)
@johnnyreilly
Thank you for bringing this to our attention.
I've delegated this to content author @ggailey777, who will review it and offer their insightful opinions.
Hi @johnnyreilly I updated the docs to add a TypeScript pivot at the top of the article and made a few other tweaks based on your blog post (e.g. mentioning jsonBody). The changes might not show up in the docs until tomorrow, just fyi.
Thanks again for writing the blog post! I see a lot of value in these "real world" stories for both us and our users, especially compared to these official docs which are a bit more bland/generic
I tried to upgrade my function app to v4 of the Node.js model using TypeScript. I attempted to guess my way into doing this, but without success. Experienced errors like this:
resulting from this code:
Maybe I've cracked it
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: