Type Alias: Fetch

Fetch = (resource, options?) => Promise<FetchResponse>

跨平台 fetch 函数签名。 Cross-platform fetch function signature.

Parameters

resource

FetchRequest | string

请求对象或 URL / Request object or URL string.

options?

Partial<FetchRequest>

追加参数 / Extra options.

Returns

Promise<FetchResponse>

统一响应结构 / Normalized response payload.