misc_pterodactyl-panel/resources/assets/scripts/pterodactyl-shims.d.ts

36 lines
811 B
TypeScript
Raw Normal View History

2018-12-30 00:34:22 +00:00
import Vue from "vue";
import {Store} from "vuex";
2018-12-30 03:24:09 +00:00
import {FlashInterface} from "./mixins/flash";
import {AxiosInstance} from "axios";
import {Vue as VueType} from "vue/types/vue";
declare global {
interface Window {
X_CSRF_TOKEN: string,
_: any,
$: any,
jQuery: any,
axios: AxiosInstance,
events: VueType,
}
}
2018-12-30 00:34:22 +00:00
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
$store?: Store<any>,
$options?: {
sockets?: {
[s: string]: (data: any) => void,
}
},
}
}
declare module 'vue/types/vue' {
interface Vue {
$store: Store<any>,
$flash: FlashInterface,
route: (name: string, params?: object, absolute?: boolean) => string,
2018-12-30 00:34:22 +00:00
}
}