🛡️TypeSafe 中文文档
原文档 ↗

类型别名:Fetch

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

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

参数

input

string

init?

RequestInit

返回

Promise\<Response>

本站为 docs.typesafe.ai 的中文翻译,仅供学习参考;内容版权归原作者所有。