Skip to content
Permalink
Browse files

fix(types): correct Vuex Store instance (#227)

  • Loading branch information...
RomainLanz authored and pi0 committed Mar 5, 2019
1 parent df6ce84 commit 1ed6e2ffef6ac91fd2fdd4f4cbdfface8da1b2f4
Showing with 8 additions and 0 deletions.
  1. +1 −0 types/index.d.ts
  2. +7 −0 types/vuex.d.ts
@@ -1,5 +1,6 @@
import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
import Vue from 'vue'
import './vuex'

interface NuxtAxiosInstance extends AxiosInstance {
$request<T = any>(config: AxiosRequestConfig): Promise<T>
@@ -0,0 +1,7 @@
import { NuxtAxiosInstance } from '.'

declare module 'vuex' {
interface Store<S> {
$axios: NuxtAxiosInstance,
}
}

0 comments on commit 1ed6e2f

Please sign in to comment.
You can’t perform that action at this time.