We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c7f08e commit 465623cCopy full SHA for 465623c
packages/vectors/src/accessors.ts
@@ -11,24 +11,30 @@ export const declareIndex = (
11
idx > 0
12
? strided
13
? function () {
14
+ // @ts-ignore mixin
15
return this.buf[this.offset + idx * this.stride];
16
}
17
: function () {
18
19
return this.buf[this.offset + idx];
20
21
22
23
return this.buf[this.offset];
24
};
25
const set =
26
27
28
? function (n: number) {
29
30
this.buf[this.offset + idx * this.stride] = n;
31
32
: function (n: number) {
33
34
this.buf[this.offset + idx] = n;
35
36
37
38
this.buf[this.offset] = n;
39
40
defNumeric &&
0 commit comments