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

@@ -14,7 +14,7 @@ const COLORS: Array<[number, number, number]> = [
];
class FakeGroupCallVideoFrameSource implements VideoFrameSource {
readonly #sourceArray: Uint8Array;
readonly #sourceArray: Uint8Array<ArrayBuffer>;
readonly #dimensions: [number, number];
constructor(width: number, height: number, r: number, g: number, b: number) {
@@ -32,7 +32,7 @@ class FakeGroupCallVideoFrameSource implements VideoFrameSource {
}
receiveVideoFrame(
destinationBuffer: Uint8Array,
destinationBuffer: Uint8Array<ArrayBuffer>,
_maxWidth: number,
_maxHeight: number
): [number, number] | undefined {

View File

@@ -24,17 +24,17 @@ import { Backups } from '../protobuf/index.std.js';
export type BackupGeneratorConfigType = Readonly<
{
aci: AciString;
profileKey: Uint8Array;
profileKey: Uint8Array<ArrayBuffer>;
conversations: number;
conversationAcis?: ReadonlyArray<AciString>;
messages: number;
mediaRootBackupKey: Uint8Array;
mediaRootBackupKey: Uint8Array<ArrayBuffer>;
} & (
| {
accountEntropyPool: string;
}
| {
backupKey: Uint8Array;
backupKey: Uint8Array<ArrayBuffer>;
}
)
>;
@@ -42,7 +42,7 @@ export type BackupGeneratorConfigType = Readonly<
const IV_LENGTH = 16;
export type GenerateBackupResultType = Readonly<{
backupId: Uint8Array;
backupId: Uint8Array<ArrayBuffer>;
stream: Readable;
}>;
@@ -77,7 +77,7 @@ export function generateBackup(
function* frame(
item: NonNullable<Backups.Frame.Params['item']>
): Iterable<Uint8Array> {
): Iterable<Uint8Array<ArrayBuffer>> {
yield* encodeDelimited(
Backups.Frame.encode({
item,
@@ -97,7 +97,7 @@ function* createRecords({
conversationAcis = [],
messages,
mediaRootBackupKey,
}: BackupGeneratorConfigType): Iterable<Uint8Array> {
}: BackupGeneratorConfigType): Iterable<Uint8Array<ArrayBuffer>> {
yield* encodeDelimited(
Backups.BackupInfo.encode({
version: BigInt(BACKUP_VERSION),
@@ -182,7 +182,7 @@ function* createRecords({
const chats = new Array<{
id: bigint;
aci: Uint8Array;
aci: Uint8Array<ArrayBuffer>;
}>();
for (let i = 1; i <= conversations; i += 1) {