(type: "string" | "blob" = "string")
| 52 | async async(type: "string" | "blob"): Promise<string | Blob>; |
| 53 | |
| 54 | async async(type: "string" | "blob" = "string"): Promise<string | Blob> { |
| 55 | if (type === "blob") { |
| 56 | return this.toBlob(); |
| 57 | } |
| 58 | return new TextDecoder().decode(await this.toUint8Array()); |
| 59 | } |
| 60 | |
| 61 | getContent() { |
| 62 | return this.content; |
no test coverage detected