fix esbuild and typing issues

This commit is contained in:
A
2026-05-19 22:12:40 -03:00
committed by Bruno Miiller
parent f92bcd630d
commit c96de5ccbc
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const getKeyIVFromPassword = async (
const k2 = await window.crypto.subtle.deriveBits(
{
name: "PBKDF2",
salt: salt,
salt: salt as Uint8Array<ArrayBuffer>,
iterations: rounds,
hash: "SHA-256",
},
+1 -1
View File
@@ -729,7 +729,7 @@ export class FakeFsOnedrive extends FakeFs {
*/
async _putUint8ArrayByRange(
pathFragOrig: string,
payload: Uint8Array,
payload: Uint8Array<ArrayBuffer>,
rangeStart: number,
rangeEnd: number,
size: number
+2 -2
View File
@@ -88,9 +88,9 @@ export const mkdirpInVault = async (thePath: string, vault: Vault) => {
* @returns ArrayBuffer
*/
export const bufferToArrayBuffer = (
b: Buffer | Uint8Array | ArrayBufferView
b: Buffer | Uint8Array<ArrayBuffer> | ArrayBufferView
) => {
return b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength);
return b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength) as ArrayBuffer;
};
/**