Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-17 14:38:10 -07:00
committed by GitHub
parent 3851a3905a
commit 023ae37492
207 changed files with 1819 additions and 1270 deletions

View File

@@ -6,8 +6,10 @@ import { once } from 'node:events';
// Note: can be removed once https://github.com/nodejs/node/issues/54205 is
// resolved and ported to Electron.
export function toWebStream(readable: Readable): ReadableStream<Buffer> {
let controller: ReadableStreamDefaultController<Buffer>;
export function toWebStream(
readable: Readable
): ReadableStream<Buffer<ArrayBuffer>> {
let controller: ReadableStreamDefaultController<Buffer<ArrayBuffer>>;
const cleanup = finished(readable, err => {
cleanup();