-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
Just updated from @azure/functions@4.11.0 to @azure/functions@4.11.1 and I get broken builds everywhere in all the samples using HTTP streaming:
src/functions/chats-post.ts:183:7 - error TS2322: Type 'Readable' is not assignable to type 'HttpResponseBodyInit'.
Type 'Readable' is missing the following properties from type 'FormData': append, set, get, getAll, and 7 more.
183 body: jsonStream,
~~~~
../../node_modules/@azure/functions/types/http.d.ts:229:5
229 body?: HttpResponseBodyInit;
~~~~
The expected type comes from property 'body' which is declared here on type 'HttpResponseInit'
The HttpResponseBodyInit was previously defined as any, while on the new version it's:
export type HttpResponseBodyInit =
| ReadableStream
| Blob
| ArrayBufferView
| ArrayBuffer
| FormData
| URLSearchParams
| string
| null
| undefined;The type aliasing isn't working correctly in this case (not sure why) but this change is breaking many of our samples!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels