Skip to content

Commit 98b5665

Browse files
committed
add generic parameter
1 parent cd34165 commit 98b5665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assembly/buffer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class Buffer extends Uint8Array {
1212
return new Buffer(size);
1313
}
1414

15-
public static concat(items: Array<Buffer>, length: i32): Buffer {
15+
public static concat<T extends Uint8Array>(items: Array<T>, length: i32): Buffer {
1616
// assert the list itself isn't null
1717
assert(items != null);
1818

0 commit comments

Comments
 (0)