Skip to content

Commit 511b50d

Browse files
committed
upgrade dev deps
1 parent 7277cd2 commit 511b50d

3 files changed

Lines changed: 124 additions & 120 deletions

File tree

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export default class Flatbush {
8181

8282
if (data) {
8383
this.data = data;
84+
// @ts-expect-error TS can't handle SharedArraBuffer overloads
8485
this._boxes = new ArrayType(data, byteOffset + 8, numNodes * 4);
86+
// @ts-expect-error TS can't handle SharedArraBuffer overloads
8587
this._indices = new this.IndexArrayType(data, byteOffset + 8 + nodesByteSize, numNodes);
8688

8789
this._pos = numNodes * 4;
@@ -92,7 +94,9 @@ export default class Flatbush {
9294

9395
} else {
9496
const data = this.data = new ArrayBufferType(8 + nodesByteSize + numNodes * this.IndexArrayType.BYTES_PER_ELEMENT);
97+
// @ts-expect-error TS can't handle SharedArraBuffer overloads
9598
this._boxes = new ArrayType(data, 8, numNodes * 4);
99+
// @ts-expect-error TS can't handle SharedArraBuffer overloads
96100
this._indices = new this.IndexArrayType(data, 8 + nodesByteSize, numNodes);
97101
this._pos = 0;
98102
this.minX = Infinity;

0 commit comments

Comments
 (0)