Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add generic parameter
  • Loading branch information
jtenner committed Mar 12, 2020
commit 98b5665041336503edfaea86a34b709ea771a6d8
2 changes: 1 addition & 1 deletion assembly/buffer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Buffer extends Uint8Array {
return new Buffer(size);
}

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

Expand Down