Update dependency typescript to v5.9.3 (#30492)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2026-01-08 19:23:40 +00:00
committed by GitHub
parent ce741f055c
commit 795780da66
14 changed files with 81 additions and 41 deletions

View File

@@ -64,7 +64,8 @@ global.URL.revokeObjectURL = jest.fn();
// polyfilling TextEncoder as it is not available on JSDOM
// view https://github.com/facebook/jest/issues/9983
global.TextEncoder = TextEncoder;
// XXX: Node's implementation has marginally different types, so we fudge it
(globalThis as any).TextEncoder = TextEncoder;
// @ts-ignore
global.TextDecoder = TextDecoder;

View File

@@ -118,7 +118,7 @@ describe("VoiceMessageRecording", () => {
const encryptedFile = {} as unknown as EncryptedFile;
beforeEach(() => {
voiceRecording.onDataAvailable!(testBuf);
voiceRecording.onDataAvailable!(testBuf.buffer);
});
it("contentLength should return the buffer length", () => {

View File

@@ -59,8 +59,8 @@ const TEST_VECTORS = [
],
];
function stringToArray(s: string): ArrayBufferLike {
return new TextEncoder().encode(s).buffer;
function stringToArray(s: string): ArrayBuffer {
return new TextEncoder().encode(s).buffer as ArrayBuffer;
}
describe("MegolmExportEncryption", function () {