Skip to content

Commit 34cf68e

Browse files
authored
Fixed Uint8Array contructor param type (#56)
2 parents 3c87863 + 8ebc806 commit 34cf68e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class Component implements Part {
1212
* @param headers The headers of the component
1313
* @param [body] The body of the component. Defaults to empty if null or undefined.
1414
*/
15-
public constructor(headers: HeadersInit, body?: ArrayLike<number> | ArrayBufferLike | null) {
15+
public constructor(headers: HeadersInit, body?: ArrayLike<number> | ArrayBuffer | null) {
1616
this.headers = new Headers(headers);
1717
this.body = body === undefined || body === null ? new Uint8Array(0) : new Uint8Array(body);
1818
}

0 commit comments

Comments
 (0)