Files
MusicServer/musicSdk/request.ts
T

9 lines
426 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// SDK 根请求模块(转接至 src/common/request.js)
// musicSdk 内 `import { ... } from '../request.js'` 的解析目标
import { httpFetch as rawHttpFetch } from '../src/common/request.js'
import type { HttpRequestObject, HttpOptions } from './types.ts'
export const httpFetch: (url: string, options?: HttpOptions) => HttpRequestObject =
rawHttpFetch as (url: string, options?: HttpOptions) => HttpRequestObject