fix: 移除请求函数中的不必要的类型注释

This commit is contained in:
lyswhut
2026-06-14 20:14:01 +08:00
parent 97fe5fa496
commit e0575fc179
-1
View File
@@ -206,7 +206,6 @@ export const request = async <T = unknown>(url: string, options: Options = {}):
body, body,
signal: options.signal, signal: options.signal,
dispatcher: buildRequestDispatcher(options), dispatcher: buildRequestDispatcher(options),
// @ts-expect-error
maxRedirections: options.maxRedirect ?? defaultOptions.maxRedirect, maxRedirections: options.maxRedirect ?? defaultOptions.maxRedirect,
}).then(async(response) => { }).then(async(response) => {
if (options.needBody) { if (options.needBody) {