Skip to content

Commit 465623c

Browse files
minor(vectors): add ts-ignore comments for accessor mixins (TS6.0 related)
1 parent 7c7f08e commit 465623c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/vectors/src/accessors.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,30 @@ export const declareIndex = (
1111
idx > 0
1212
? strided
1313
? function () {
14+
// @ts-ignore mixin
1415
return this.buf[this.offset + idx * this.stride];
1516
}
1617
: function () {
18+
// @ts-ignore mixin
1719
return this.buf[this.offset + idx];
1820
}
1921
: function () {
22+
// @ts-ignore mixin
2023
return this.buf[this.offset];
2124
};
2225
const set =
2326
idx > 0
2427
? strided
2528
? function (n: number) {
29+
// @ts-ignore mixin
2630
this.buf[this.offset + idx * this.stride] = n;
2731
}
2832
: function (n: number) {
33+
// @ts-ignore mixin
2934
this.buf[this.offset + idx] = n;
3035
}
3136
: function (n: number) {
37+
// @ts-ignore mixin
3238
this.buf[this.offset] = n;
3339
};
3440
defNumeric &&

0 commit comments

Comments
 (0)