(url: string, mimeType?: string)
| 33 | } |
| 34 | |
| 35 | export async function loadAsBlob(url: string, mimeType?: string): Promise<Blob> { |
| 36 | const response = await getOKResponse(url, mimeType); |
| 37 | return await response.blob(); |
| 38 | } |
| 39 | |
| 40 | export async function readResponseAsDataURL(response: Response): Promise<string> { |
| 41 | const blob = await response.blob(); |
no test coverage detected