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

40 lines
947 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";
2018-12-30 23:07:12 +00:00
import {ApplicationState} from "./store/types";
2019-02-03 02:49:51 +00:00
// @ts-ignore
import {Ziggy} from './helpers/ziggy';
declare global {
interface Window {
X_CSRF_TOKEN: string,
_: any,
$: any,
jQuery: any,
axios: AxiosInstance,
events: VueType,
2019-02-03 02:49:51 +00:00
Ziggy: Ziggy,
}
}
2018-12-30 00:34:22 +00:00
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
2018-12-30 23:07:12 +00:00
$store?: Store<ApplicationState>,
2018-12-30 00:34:22 +00:00
$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
}
}