fix: 修复 fetch.ts preconnect 重复标识符类型错误

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
costrict 2026-04-16 15:23:05 +08:00 committed by Askhz
parent 06be8bc88c
commit 22fd08537a

View File

@ -43,8 +43,13 @@ const VERSION = getVersion()
* 3. Authorization CoStrict headers
* 4. 401
*/
type CoStrictFetchFn = {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
preconnect?: (url: string | URL) => void
}
export function createCoStrictFetch() {
const costrictFetch = async (
const costrictFetch: CoStrictFetchFn = async (
input: RequestInfo | URL,
init?: RequestInit,
) => {