chore: back fetch.ts

This commit is contained in:
Askhz 2026-04-16 15:29:09 +08:00
parent 22fd08537a
commit 13ec1d4510

View File

@ -43,13 +43,8 @@ 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: CoStrictFetchFn = async (
const costrictFetch = async (
input: RequestInfo | URL,
init?: RequestInit,
) => {