mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 23:33:45 +02:00
Finish auth migration, now to make it work
This commit is contained in:
16
resources/assets/scripts/pterodactyl-shims.d.ts
vendored
16
resources/assets/scripts/pterodactyl-shims.d.ts
vendored
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user