Skip to content

Commit f38befa

Browse files
authored
Merge pull request #2 from imcvampire/master
同步代码
2 parents 6886c30 + 6de098f commit f38befa

File tree

3 files changed

+359
-841
lines changed

3 files changed

+359
-841
lines changed

index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ declare module "@vue/runtime-core" {
1212
}
1313
}
1414

15+
declare module 'vue/types/vue' {
16+
interface Vue {
17+
$http: AxiosStatic;
18+
axios: AxiosStatic;
19+
}
20+
21+
interface VueConstructor {
22+
axios: AxiosStatic;
23+
}
24+
}
25+
1526
declare function VueAxios(app: App, axios: AxiosStatic): void;
1627

1728
export default VueAxios;

0 commit comments

Comments
 (0)