Skip to content
Permalink
Browse files
fix(types): extend Axios.AxiosRequestConfig with "progress" option (#408
)

As documented in https://axios.nuxtjs.org/options.html#progress, Nuxt Axios
supports passing "progress" boolean through request options.
  • Loading branch information
rchl committed Aug 25, 2020
1 parent 4942979 commit ea4ea7e323e053d6ae025210534c675e468a273c
Showing 1 changed file with 7 additions and 1 deletion.
@@ -29,7 +29,7 @@ interface AxiosOptions {
browserBaseURL?: string,
credentials?: boolean,
debug?: boolean,
host?: string,
host?: string,
prefix?: string,
progress?: boolean,
proxyHeaders?: boolean,
@@ -49,6 +49,12 @@ interface AxiosOptions {
},
}

declare module 'axios' {
interface AxiosRequestConfig {
progress?: boolean;
}
}

declare module '@nuxt/vue-app' {
interface Context {
$axios: NuxtAxiosInstance

0 comments on commit ea4ea7e

Please sign in to comment.