Skip to content

postgrestx-monorepo v0.0.1


postgrestx-monorepo / tanstack/src / createAxiosHttpClient

Function: createAxiosHttpClient()

createAxiosHttpClient(axios): (input, init?) => Promise<Response>

Defined in: packages/tanstack/src/http/axiosHttpClient.ts:7

Creates a fetch-compatible HTTP client using Axios. This allows you to use Axios anywhere a fetch-like client is expected.

Parameters

axios

AxiosInstance

Returns

(input, init?): Promise<Response>

Parameters

input

string | Request

init?

RequestInit

Returns

Promise<Response>