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

@@ -47,12 +47,12 @@ const log = createLogger('uploadAttachment');
export async function uploadAttachment(
attachment: AttachmentWithHydratedData
): Promise<UploadedAttachmentType> {
let keys: Uint8Array;
let keys: Uint8Array<ArrayBuffer>;
let cdnKey: string;
let cdnNumber: number;
let digest: Uint8Array;
let digest: Uint8Array<ArrayBuffer>;
let plaintextHash: string;
let incrementalMac: Uint8Array | undefined;
let incrementalMac: Uint8Array<ArrayBuffer> | undefined;
let chunkSize: number | undefined;
let uploadTimestamp: number;
@@ -130,7 +130,7 @@ export async function encryptAndUploadAttachment({
plaintext,
uploadType,
}: {
keys: Uint8Array;
keys: Uint8Array<ArrayBuffer>;
needIncrementalMac: boolean;
plaintext: PlaintextSourceType;
uploadType: 'standard' | 'backup';