diff --git a/resources/assets/scripts/pterodactyl-shims.d.ts b/resources/assets/scripts/pterodactyl-shims.d.ts new file mode 100644 index 000000000..e70949d28 --- /dev/null +++ b/resources/assets/scripts/pterodactyl-shims.d.ts @@ -0,0 +1,19 @@ +import Vue from "vue"; +import {Store} from "vuex"; + +declare module 'vue/types/options' { + interface ComponentOptions { + $store?: Store, + $options?: { + sockets?: { + [s: string]: (data: any) => void, + } + }, + } +} + +declare module 'vue/types/vue' { + interface Vue { + $store: Store, + } +} diff --git a/resources/assets/scripts/vue-shims.d.ts b/resources/assets/scripts/vue-shims.d.ts index 350f5140a..b93ce2227 100644 --- a/resources/assets/scripts/vue-shims.d.ts +++ b/resources/assets/scripts/vue-shims.d.ts @@ -1,23 +1,4 @@ -import Vue, {ComponentOptions} from "vue"; -import {Store} from "vuex"; - declare module '*.vue' { - export default Vue; -} - -declare module 'vue/types/options' { - interface ComponentOptions { - $store?: Store, - $options?: { - sockets?: { - [s: string]: (data: any) => void, - } - }, - } -} - -declare module 'vue/types/vue' { - interface Vue { - $store: Store, - } + import Vue from 'vue' + export default Vue }