Skip to content

Commit

Permalink
Use AxiosInstance over Axios
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 13, 2023
1 parent cbfe755 commit 7c3c162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/seam/connect/client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import axios, { type Axios, type AxiosRequestConfig } from 'axios'
import axios, { type AxiosInstance, type AxiosRequestConfig } from 'axios'
import axiosRetry, { type AxiosRetry, exponentialDelay } from 'axios-retry'

import { paramsSerializer } from 'lib/params-serializer.js'

export type Client = Axios
export type Client = AxiosInstance

export interface ClientOptions {
axiosOptions?: AxiosRequestConfig
Expand All @@ -13,7 +13,7 @@ export interface ClientOptions {

type AxiosRetryConfig = Parameters<AxiosRetry>[1]

export const createClient = (options: ClientOptions): Axios => {
export const createClient = (options: ClientOptions): AxiosInstance => {
if (options.client != null) return options.client

const client = axios.create({
Expand Down

0 comments on commit 7c3c162

Please sign in to comment.