mealie/frontend/types/vue.d.ts

23 lines
409 B
TypeScript
Raw Normal View History

2021-08-02 03:24:47 +00:00
import Vue from "vue";
import "@nuxt/types";
import { Icon } from "~/utils/icons/icon-type";
interface Globals {
icons: Icon;
}
2021-08-02 03:24:47 +00:00
declare module "vue/types/vue" {
interface Vue {
$globals: any;
}
2021-08-02 03:24:47 +00:00
}
declare module "vue/types/options" {
interface ComponentOptions<V extends Vue> {
$globals?: Globals;
}
interface ComponentOptions<V extends UseContextReturn> {
$globals?: Globals;
}
2021-08-02 03:24:47 +00:00
}