TS TypeSafe 文档中文版 原文 ↗

类型别名:Fetch

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

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

参数

input

string

init?

RequestInit

返回值

Promise<Response>