类型别名:Fetch
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>