Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-18 11:26:18 -07:00
committed by GitHub
parent 5e6af4708b
commit c90ca2b4e0
207 changed files with 1819 additions and 1270 deletions

View File

@@ -414,10 +414,10 @@ export class SocketManager extends EventListener {
const { method = 'GET', body, timeout, signal } = init;
let bodyBytes: Uint8Array | undefined;
let bodyBytes: Uint8Array<ArrayBuffer> | undefined;
if (body === undefined) {
bodyBytes = undefined;
} else if (body instanceof Uint8Array) {
} else if (Bytes.isNonSharedUint8Array(body)) {
bodyBytes = body;
} else if (body instanceof ArrayBuffer) {
throw new Error('Unsupported body type: ArrayBuffer');