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

@@ -446,7 +446,9 @@ describe('Attachment', () => {
};
const expectedAttachmentData = Bytes.fromString('Above us only sky');
const writeNewAttachmentData = async (attachmentData: Uint8Array) => {
const writeNewAttachmentData = async (
attachmentData: Uint8Array<ArrayBuffer>
) => {
assert.deepEqual(attachmentData, expectedAttachmentData);
return FAKE_LOCAL_ATTACHMENT;
};

View File

@@ -75,7 +75,7 @@ describe('Message', () => {
logger: LoggerType;
}) => new Blob(),
makeObjectUrl: (
_data: Uint8Array | ArrayBuffer,
_data: Uint8Array<ArrayBuffer> | ArrayBuffer,
_contentType: MIME.MIMEType
) => 'fake-object-url',
makeVideoScreenshot: async (_params: {
@@ -86,14 +86,14 @@ describe('Message', () => {
revokeObjectUrl: (_objectUrl: string) => undefined,
readAttachmentData: async (
attachment: Partial<AddressableAttachmentType>
): Promise<Uint8Array> => {
): Promise<Uint8Array<ArrayBuffer>> => {
assert.strictEqual(attachment.version, 2);
return Buffer.from('old data');
},
writeNewAttachmentData: async (_data: Uint8Array) => {
writeNewAttachmentData: async (_data: Uint8Array<ArrayBuffer>) => {
return FAKE_LOCAL_ATTACHMENT;
},
writeNewStickerData: async (_data: Uint8Array) => ({
writeNewStickerData: async (_data: Uint8Array<ArrayBuffer>) => ({
version: 2,
path: 'fake-sticker-path',
size: 1,