类型别名:Fetch
ts
type Fetch = (input, init?) => Promise<Response>;与全局 fetch 兼容的 HTTP fetch 实现。
参数
input
string
init?
RequestInit
返回
Promise\<Response>
type Fetch = (input, init?) => Promise<Response>;与全局 fetch 兼容的 HTTP fetch 实现。
string
RequestInit
Promise\<Response>