fix emitter typing issues

This commit is contained in:
riqo 2020-11-06 10:53:52 -06:00
commit 1e01c4c767
3 changed files with 17 additions and 15 deletions

View file

@ -3,15 +3,10 @@
</template>
<script lang="ts">
import { defineComponent, inject } from "vue";
import { defineComponent } from "vue";
import UIindex from "@/components/UI/index.vue";
export default defineComponent({
name: "HomeIndex",
components: { UIindex },
setup() {
const emitter: any = inject("mitt");
emitter.on("newSelfMessage", (payload: any) => console.log("foo", payload));
},
});
</script>