Skip to content

Commit

Permalink
fix(types): extend Axios.AxiosRequestConfig with "progress" option
Browse files Browse the repository at this point in the history
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 c268c6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface AxiosOptions {
browserBaseURL?: string,
credentials?: boolean,
debug?: boolean,
host?: string,
host?: string,
prefix?: string,
progress?: boolean,
proxyHeaders?: boolean,
Expand All @@ -49,6 +49,12 @@ interface AxiosOptions {
},
}

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

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

0 comments on commit c268c6b

Please sign in to comment.