45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import Vue from "vue";
|
|
import {Store} from "vuex";
|
|
import {FlashInterface} from "./mixins/flash";
|
|
import {AxiosInstance} from "axios";
|
|
import {Vue as VueType} from "vue/types/vue";
|
|
import {ApplicationState} from "./store/types";
|
|
import {Route} from "vue-router";
|
|
|
|
// @ts-ignore
|
|
import {Ziggy} from './helpers/ziggy';
|
|
|
|
declare global {
|
|
interface Window {
|
|
X_CSRF_TOKEN: string,
|
|
_: any,
|
|
$: any,
|
|
jQuery: any,
|
|
axios: AxiosInstance,
|
|
events: VueType,
|
|
Ziggy: Ziggy,
|
|
}
|
|
}
|
|
|
|
declare module 'vue/types/options' {
|
|
interface ComponentOptions<V extends Vue> {
|
|
$store?: Store<ApplicationState>,
|
|
$options?: {
|
|
sockets?: {
|
|
[s: string]: (data: any) => void,
|
|
}
|
|
},
|
|
sockets?: {
|
|
[s: string]: (data: any) => void,
|
|
}
|
|
}
|
|
}
|
|
|
|
declare module 'vue/types/vue' {
|
|
interface Vue {
|
|
$route: Route,
|
|
$store: Store<any>,
|
|
$flash: FlashInterface,
|
|
route: (name: string, params?: object, absolute?: boolean) => string,
|
|
}
|
|
}
|