Skip to content

Commit b30ed06

Browse files
authored
Merge branch 'master' into patch-1
2 parents 51ca379 + 11533ee commit b30ed06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/axios-typescript/libs/useRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import useSWR, { ConfigInterface, responseInterface } from 'swr'
1+
import useSWR, { SWRConfiguration, SWRResponse } from 'swr'
22
import axios, { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios'
33

44
export type GetRequest = AxiosRequestConfig | null
55

66
interface Return<Data, Error>
77
extends Pick<
8-
responseInterface<AxiosResponse<Data>, AxiosError<Error>>,
8+
SWRResponse<AxiosResponse<Data>, AxiosError<Error>>,
99
'isValidating' | 'revalidate' | 'error' | 'mutate'
1010
> {
1111
data: Data | undefined
@@ -14,7 +14,7 @@ interface Return<Data, Error>
1414

1515
export interface Config<Data = unknown, Error = unknown>
1616
extends Omit<
17-
ConfigInterface<AxiosResponse<Data>, AxiosError<Error>>,
17+
SWRConfiguration<AxiosResponse<Data>, AxiosError<Error>>,
1818
'initialData'
1919
> {
2020
initialData?: Data

0 commit comments

Comments
 (0)