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,11 +6,11 @@ import { InputStream } from '@signalapp/libsignal-client/dist/io.js';
export class MemoryStream extends InputStream {
#offset = 0;
constructor(private readonly buffer: Uint8Array) {
constructor(private readonly buffer: Uint8Array<ArrayBuffer>) {
super();
}
public override async read(amount: number): Promise<Uint8Array> {
public override async read(amount: number): Promise<Uint8Array<ArrayBuffer>> {
const result = this.buffer.subarray(this.#offset, this.#offset + amount);
this.#offset += amount;
return result;