Uint8Array migration

This commit is contained in:
Fedor Indutny
2021-09-23 17:49:05 -07:00
committed by GitHub
parent daf75190b8
commit 4ef0bf96cc
137 changed files with 2202 additions and 3170 deletions

View File

@@ -6,7 +6,7 @@ import { Worker } from 'worker_threads';
export type WrappedWorkerRequest = {
readonly uuid: string;
readonly data: ArrayBuffer;
readonly data: Uint8Array;
};
export type WrappedWorkerResponse = {
@@ -19,7 +19,7 @@ const ASAR_PATTERN = /app\.asar$/;
export function getHeicConverter(): (
uuid: string,
data: ArrayBuffer
data: Uint8Array
) => Promise<WrappedWorkerResponse> {
let appDir = join(__dirname, '..', '..');
let isBundled = false;