We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a392e75 commit afd0bd7Copy full SHA for afd0bd7
src/index.ts
@@ -182,10 +182,10 @@ class RemoteExecutor implements QueryExecutor {
182
183
// Process complete frames
184
while (pending.length >= 4) {
185
- const frameLen = new DataView(pending.buffer, pending.byteOffset).getUint32(0, true);
+ const frameLen = new DataView(pending.buffer as ArrayBuffer, pending.byteOffset).getUint32(0, true);
186
if (pending.length < 4 + frameLen) break; // wait for more data
187
188
- const frameBuf = pending.buffer.slice(
+ const frameBuf = (pending.buffer as ArrayBuffer).slice(
189
pending.byteOffset + 4,
190
pending.byteOffset + 4 + frameLen,
191
);
0 commit comments