Skip to content

Commit 9223a57

Browse files
MrJmpl3pi0
authored andcommitted
fix(types): extend from AxiosStatic (#319)
1 parent 150aebf commit 9223a57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
1+
import { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosStatic } from 'axios'
22
import Vue from 'vue'
33
import './vuex'
44

5-
interface NuxtAxiosInstance extends AxiosInstance {
5+
interface NuxtAxiosInstance extends AxiosStatic {
66
$request<T = any>(config: AxiosRequestConfig): Promise<T>
77
$get<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>
88
$delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>

0 commit comments

Comments
 (0)