Skip to content

fix: Generalize TypedArray#set #2388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 7, 2022
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion std/assembly/index.d.ts
Original file line number Diff line number Diff line change
@@ -1666,7 +1666,7 @@ declare abstract class TypedArray<T> implements ArrayBufferView {
/** The join() method joins all elements of an array into a string. This method has the same algorithm as Array.prototype.join(). */
join(separator?: string): string;
/** The set() method stores multiple values in the typed array, reading input values from a specified array. */
set<U extends ArrayBufferView>(source: U, offset?: i32): void
set<U extends ArrayLike<number>>(source: U, offset?: i32): void
/** The toString() method returns a string representing the specified array and its elements. This method has the same algorithm as Array.prototype.toString() */
toString(): string;
}
Loading