Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/fetch.ts>fetchExtend

Useful snippet collection.
Go to Latest
function fetchExtend
import { fetchExtend } from "https://deno.land/x/simple_utility@v1.4.1/src/fetch.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