vue-lynx / defineEmits
Function: defineEmits()
defineEmits(emitOptions)
Vue <script setup> compiler macro for declaring a component's emitted
events. The expected argument is the same as the component emits option.
Example runtime declaration:
Example type-based declaration:
This is only usable inside <script setup>, is compiled away in the
output and should not be actually called at runtime.
Type Parameters
Parameters
Returns
EmitFn<EE[]>
See
https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits
Defined in
node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:226
defineEmits(emitOptions)
Type Parameters
Parameters
Returns
EmitFn<E>
Defined in
node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:227
defineEmits()
Type Parameters
Returns
T extends (...args) => any ? T : ShortEmits<T>
Defined in
node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:228