Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function fetchExtend
import { fetchExtend } from "https://deno.land/x/simple_utility@v1.3.0/mod.universal.ts";

Extended fetch function that can specify response type directly.

Examples

Example 1

const response = await fetchExtend("./asset", "byte");

Parameters

path: string
type: T
optional
option: FetchInit