Finish auth migration, now to make it work

This commit is contained in:
Dane Everitt 2018-12-30 12:13:10 -08:00
parent 3b553beac6
commit 75ba2eac39
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
13 changed files with 375 additions and 384 deletions

View file

@ -1,6 +1,19 @@
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";
declare global {
interface Window {
X_CSRF_TOKEN: string,
_: any,
$: any,
jQuery: any,
axios: AxiosInstance,
events: VueType,
}
}
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
@ -16,6 +29,7 @@ declare module 'vue/types/options' {
declare module 'vue/types/vue' {
interface Vue {
$store: Store<any>,
$flash: FlashInterface
$flash: FlashInterface,
route: (name: string, params?: object, absolute?: boolean) => string,
}
}