联合网络请求初始化配置类型,结合了 FetchInit 和 MinaFetchInit。
1.0.0
import { fetchT, type UnionFetchInit } from 'minigame-std';const init: UnionFetchInit = { method: 'GET', responseType: 'json', timeout: 30000,};const task = fetchT('https://api.example.com/data', init); Copy
import { fetchT, type UnionFetchInit } from 'minigame-std';const init: UnionFetchInit = { method: 'GET', responseType: 'json', timeout: 30000,};const task = fetchT('https://api.example.com/data', init);
联合网络请求初始化配置类型,结合了 FetchInit 和 MinaFetchInit。