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";
|
2018-12-30 20:13:10 +00:00
|
|
|
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';
|
2018-12-30 20:13:10 +00:00
|
|
|
|
|
|
|
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 20:13:10 +00:00
|
|
|
}
|
|
|
|
}
|
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>,
|
2018-12-30 20:13:10 +00:00
|
|
|
$flash: FlashInterface,
|
|
|
|
route: (name: string, params?: object, absolute?: boolean) => string,
|
2018-12-30 00:34:22 +00:00
|
|
|
}
|
|
|
|
}
|