From 13ec1d4510dfb8176e74d7864da492e1c60e35db Mon Sep 17 00:00:00 2001 From: Askhz <1361267452@qq.com> Date: Thu, 16 Apr 2026 15:29:09 +0800 Subject: [PATCH] chore: back fetch.ts --- src/costrict/provider/fetch.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/costrict/provider/fetch.ts b/src/costrict/provider/fetch.ts index e906a7995..dabbf532a 100644 --- a/src/costrict/provider/fetch.ts +++ b/src/costrict/provider/fetch.ts @@ -43,13 +43,8 @@ const VERSION = getVersion() * 3. 注入 Authorization 和 CoStrict 特有 headers * 4. 反应性 401 错误恢复(自动重试一次) */ -type CoStrictFetchFn = { - (input: RequestInfo | URL, init?: RequestInit): Promise - preconnect?: (url: string | URL) => void -} - export function createCoStrictFetch() { - const costrictFetch: CoStrictFetchFn = async ( + const costrictFetch = async ( input: RequestInfo | URL, init?: RequestInit, ) => {