Skip to main content
Go to Latest
function fetchExtend
import { fetchExtend } from "https://deno.land/x/simple_utility@v0.2.1/mod.universal.ts";

Extended fetch function that can directly specify the response type.

Parameters

path: string

Since the query string is ignored, please specify it in the option.query property instead of writing it directly in the URL.

type: T

The type you want to receive in the response.

optional
option: FetchInit

window is removed from RequestInit and query is added to write the query string.