Skip to content

Commit

Permalink
fix: import only needed axios type
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed Jan 17, 2024
1 parent 4f78572 commit eae933a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import { h, JSX } from 'preact'
import { useCallback } from 'preact/hooks'
import { forwardRef } from 'preact/compat'
import type { CancelTokenSource } from 'axios'

const noop = () => undefined

Expand All @@ -24,7 +25,7 @@ interface BaseInertiaLinkProps {
preserveState?: PreserveStateOption
replace?: boolean
only?: string[]
onCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void
onCancelToken?: (cancelToken: CancelTokenSource) => void
onBefore?: () => void
onStart?: () => void
onProgress?: (progress: Progress) => void
Expand Down

0 comments on commit eae933a

Please sign in to comment.