1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-26 17:43:22 +00:00

[PM-31406] fix: TypeScript 5.9 type compatibility fixes for vault-owned code (#19191)

* fix: TypeScript 5.9 type compatibility fixes for vault-owned code

Add explicit `as BufferSource` casts and `Uint8Array` wrapping to satisfy
stricter type checking in TypeScript 5.9. Non-functional changes.

* Fix cli build
This commit is contained in:
Bernd Schoolmann
2026-02-25 10:04:23 +01:00
committed by GitHub
parent 8d0c4123a6
commit d20f659bbc
4 changed files with 4 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ export class CreateCommand {
const updatedCipher = await this.cipherService.saveAttachmentRawWithServer(
cipher,
fileName,
new Uint8Array(fileBuf).buffer,
new Uint8Array(fileBuf),
activeUserId,
);
const decCipher = await this.cipherService.decrypt(updatedCipher, activeUserId);