feat(wip): start working on seeing if emitting events between component and parent works
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-07-09 07:40:20 +02:00
parent fef618795d
commit 704de034b7
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
2 changed files with 12 additions and 0 deletions

View file

@ -75,6 +75,11 @@ onMounted(async () => {
// showHover.value = !showHover.value;
//}
const nuxtApp = useNuxtApp();
function emitId() {
// nuxtApp.callHook()
}
</script>
<style scoped>

7
types/hooks.ts Normal file
View file

@ -0,0 +1,7 @@
import type { RuntimeNuxtHooks } from 'nuxt/schema';
declare module "nuxt/schema" {
interface RuntimeNuxtHooks {
"app:message:right-clicked": (payload: { messageId: string }) => void
}
}