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

@@ -94,7 +94,7 @@ async function fetchSegment(
contentLength: number,
doFetchBytesViaProxy: typeof fetchBytesViaProxy,
signal?: AbortSignal
): Promise<ArrayBufferView> {
): Promise<Uint8Array<ArrayBuffer>> {
const { data, response } = await doFetchBytesViaProxy({
method: 'GET',
url,
@@ -122,7 +122,7 @@ async function fetchSegment(
'Unexpected response buffer byte length'
);
let slice: ArrayBufferView;
let slice: Uint8Array<ArrayBuffer>;
// Trim duplicate bytes from start of last segment
if (segmentRange.sliceStart > 0) {
slice = data.subarray(segmentRange.sliceStart);