mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 09:58:12 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
import { canvasToBytes } from './canvasToBytes.std.js';
|
||||
|
||||
export async function imagePathToBytes(src: string): Promise<Uint8Array> {
|
||||
export async function imagePathToBytes(
|
||||
src: string
|
||||
): Promise<Uint8Array<ArrayBuffer>> {
|
||||
const image = new Image();
|
||||
const canvas = document.createElement('canvas');
|
||||
const context = canvas.getContext('2d');
|
||||
|
||||
Reference in New Issue
Block a user