* foo?: string
* bar: number
* }>()
+ * ```
*
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
- * ```
*
* This is only usable inside `<script setup>`, is compiled away in the
* output and should **not** be actually called at runtime.
* Example type-based declaration:
* ```ts
* const emit = defineEmits<{
- * (event: 'change'): void
- * (event: 'update', id: number): void
+ * // <eventName>: <expected arguments>
+ * change: []
+ * update: [value: string] // named tuple syntax
* }>()
*
* emit('change')