Skip to content

Commit a6343fa

Browse files
committed
fix: resolve remaining tsc errors for CI build
- Fix globalThis.DurableObject access in test-setup.ts (no index signature) - Fix Uint8Array<ArrayBufferLike> assignment in streaming reader
1 parent dd5ce77 commit a6343fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class RemoteExecutor implements QueryExecutor {
178178
while (true) {
179179
const { done, value } = await reader.read();
180180
if (done) break;
181-
pending = pending.length > 0 ? concat(pending, value) : value;
181+
pending = pending.length > 0 ? concat(pending, new Uint8Array(value)) : new Uint8Array(value);
182182

183183
// Process complete frames
184184
while (pending.length >= 4) {

src/test-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* DurableObject is a base class provided by the Workers runtime —
44
* tests run in Node and need a minimal stand-in.
55
*/
6-
if (typeof globalThis.DurableObject === "undefined") {
6+
if (typeof (globalThis as Record<string, unknown>).DurableObject === "undefined") {
77
(globalThis as Record<string, unknown>).DurableObject = class DurableObject {
88
protected ctx: unknown;
99
protected env: unknown;

0 commit comments

Comments
 (0)