文档导航

类型别名:Fetch

类型别名:Fetch

type Fetch = (input, init?) => Promise<Response>;

与全局 fetch 兼容的 HTTP fetch 实现。

参数

input

string

init?

RequestInit

返回值

Promise<Response>