Skip to content

Commit

Permalink
feat: expose isAxiosError
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Dec 2, 2024
1 parent 06ea121 commit dc9330f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/axle/src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
InternalAxiosRequestConfig,
ResponseType,
AxiosError,
isAxiosError,
} from 'axios'
import { objectToFormData } from './utils'

Expand All @@ -26,7 +27,7 @@ export type {
ResponseType,
}

export { AxiosError }
export { AxiosError, isAxiosError }

export type FetchRunner = <R = AxiosResponse, P = Record<string, any>>(
url: string,
Expand Down

0 comments on commit dc9330f

Please sign in to comment.