We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fbea3a commit 8ebc806Copy full SHA for 8ebc806
src/Component.ts
@@ -12,7 +12,7 @@ export class Component implements Part {
12
* @param headers The headers of the component
13
* @param [body] The body of the component. Defaults to empty if null or undefined.
14
*/
15
- public constructor(headers: HeadersInit, body?: ArrayLike<number> | ArrayBufferLike | null) {
+ public constructor(headers: HeadersInit, body?: ArrayLike<number> | ArrayBuffer | null) {
16
this.headers = new Headers(headers);
17
this.body = body === undefined || body === null ? new Uint8Array(0) : new Uint8Array(body);
18
}
0 commit comments