File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ export default {
176
176
177
177
</div >
178
178
179
- The ` emits ` option also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
180
-
181
179
<div class =" composition-api " >
182
180
181
+ The ` defineEmits() ` macro also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
182
+
183
183
``` vue
184
184
<script setup>
185
185
const emit = defineEmits({
@@ -207,6 +207,8 @@ More details: [Typing Component Emits](/guide/typescript/composition-api#typing-
207
207
</div >
208
208
<div class =" options-api " >
209
209
210
+ The ` emits ` option also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
211
+
210
212
``` js
211
213
export default {
212
214
emits: {
You can’t perform that action at this time.
0 commit comments