Skip to content

Commit de78a56

Browse files
committed
remove base64
1 parent c2faedb commit de78a56

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/pure/fetch.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import {base64Encode} from "./base64.ts";
2-
31
interface ResponseType {
42
"text": string;
5-
"base64": string;
63
"json": unknown;
74
"form": FormData;
85
"byte": Uint8Array;
@@ -56,7 +53,6 @@ export async function fetchExtend<T extends keyof ResponseType>(path:string, typ
5653

5754
switch(type){
5855
case "text": return <ResponseType[T]>await response.text();
59-
case "base64": return <ResponseType[T]>base64Encode(new Uint8Array(await response.arrayBuffer()));
6056
case "json": return <ResponseType[T]>await response.json();
6157
case "form": return <ResponseType[T]>await response.formData();
6258
case "byte": return <ResponseType[T]>new Uint8Array(await response.arrayBuffer());

0 commit comments

Comments
 (0)