Skip to content

Commit 7f8952a

Browse files
mvrlinpi0
authored andcommitted
feat(types): add Context interface
1 parent 92edc6a commit 7f8952a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ interface NuxtAxiosInstance extends AxiosInstance {
2121
onResponseError(callback: (error: AxiosError) => void): void
2222
}
2323

24+
declare module '@nuxt/vue-app' {
25+
interface Context {
26+
$axios: NuxtAxiosInstance
27+
}
28+
}
29+
2430
declare module 'vue/types/vue' {
2531
interface Vue {
2632
$axios: NuxtAxiosInstance

0 commit comments

Comments
 (0)