(file: File | string)
| 36 | } |
| 37 | |
| 38 | export const readBase64 = (file: File | string) => { |
| 39 | return typeof file === 'string' ? readBase64WithFetch(file) : readBase64WithFileReader(file) |
| 40 | } |
| 41 | |
| 42 | export const readImageElement = (url: string, base64 = false) => { |
| 43 | return new Promise<HTMLImageElement>(async (resolve, reject) => { |
no test coverage detected
searching dependent graphs…