File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ import Vue , { PluginFunction , PluginObject } from "vue" ;
2
+ import { AxiosInstance } from "axios" ;
3
+
4
+ declare module "vue/types/vue" {
5
+
6
+ interface Vue {
7
+ axios : AxiosInstance ;
8
+ $http : AxiosInstance ;
9
+ }
10
+
11
+ namespace Vue {
12
+ const axios : AxiosInstance ;
13
+ }
14
+
15
+ }
16
+
17
+ declare class VueAxios {
18
+ static install : PluginFunction < AxiosInstance > ;
19
+ }
20
+
21
+ export = VueAxios
Original file line number Diff line number Diff line change 3
3
"version" : " 2.0.2" ,
4
4
"description" : " A small wrapper for integrating axios to Vuejs" ,
5
5
"main" : " dist/vue-axios.min.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " npm run test"
8
9
},
26
27
},
27
28
"homepage" : " https://github.com/imcvampire/vue-axios#readme" ,
28
29
"devDependencies" : {
30
+ "axios" : " ^0.17.1" ,
29
31
"babel-core" : " ^6.18.0" ,
30
32
"babel-preset-es2015" : " ^6.18.0" ,
31
33
"gulp" : " ^3.9.1" ,
32
34
"gulp-babel" : " ^6.1.2" ,
33
35
"gulp-rename" : " ^1.2.2" ,
34
- "gulp-uglifyjs" : " ^0.6.2"
36
+ "gulp-uglifyjs" : " ^0.6.2" ,
37
+ "vue" : " ^2.5.13"
35
38
},
36
39
"peerDependencies" : {
37
40
"vue" : " >= 1.0.0"
You can’t perform that action at this time.
0 commit comments