Skip to content

Glossary: Vue.js

defineEmits

Also written: emit

A compiler macro in `<script setup>` that declares the events a component can send and returns the `emit` function used to send them.

Where the book teaches it

Related terms

EmitdefinePropsCompiler macro