You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
525 B
TypeScript
30 lines
525 B
TypeScript
|
1 month ago
|
import { AxiosStatic } from "axios";
|
||
|
|
// @ts-ignore
|
||
|
|
import { App } from "vue";
|
||
|
|
|
||
|
|
declare module "@vue/runtime-core" {
|
||
|
|
export interface ComponentCustomProperties {
|
||
|
|
$http: AxiosStatic;
|
||
|
|
axios: AxiosStatic;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface App {
|
||
|
|
axios: AxiosStatic;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
declare module 'vue/types/vue' {
|
||
|
|
interface Vue {
|
||
|
|
$http: AxiosStatic;
|
||
|
|
axios: AxiosStatic;
|
||
|
|
}
|
||
|
|
|
||
|
|
interface VueConstructor {
|
||
|
|
axios: AxiosStatic;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
declare function VueAxios(app: App, axios: AxiosStatic): void;
|
||
|
|
|
||
|
|
export default VueAxios;
|