Skip to content

Commit

Permalink
fix: typed array constructor property typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Apr 28, 2023
1 parent 054b57a commit 05f9a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/array/typed_array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class TypedArrayType<T extends TypedArray>

write(value: T, dataView: DataView, byteOffset = 0) {
// @ts-ignore Sets the dataView buffer to the value
new this.array(dataView, byteOffset).set(value);
new this.Constructor(dataView, byteOffset).set(value);
}

view(dataView: DataView, byteOffset = 0): T {
Expand Down

0 comments on commit 05f9a1c

Please sign in to comment.