Skip to content

Commit 8ebc806

Browse files
committed
fix type of Uint8Array constructor param
1 parent 4fbea3a commit 8ebc806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)