import { fetchExtend } from "https://deno.land/x/simple_utility@v1.4.4/src/fetch.ts";
Extended fetch function that can specify response type directly.
Examples
Example 1
Example 1
const response = await fetchExtend("./asset", "byte");
Type Parameters
T extends keyof ResponseType
Returns
Promise<ResponseType[T]>