import { AxiosInstance, AxiosRequestConfig } from 'axios' import Vue from 'vue' interface NuxtAxiosInstance extends AxiosInstance { $request(config: AxiosRequestConfig): Promise $get(url: string, config?: AxiosRequestConfig): Promise $delete(url: string, config?: AxiosRequestConfig): Promise $head(url: string, config?: AxiosRequestConfig): Promise $options(url: string, config?: AxiosRequestConfig): Promise $post(url: string, data?: any, config?: AxiosRequestConfig): Promise $put(url: string, data?: any, config?: AxiosRequestConfig): Promise $patch(url: string, data?: any, config?: AxiosRequestConfig): Promise } declare module 'vue/types/vue' { interface Vue { $axios: NuxtAxiosInstance } }