diff --git a/src/guide/components/events.md b/src/guide/components/events.md index 93d7351ee7..609aaa23cb 100644 --- a/src/guide/components/events.md +++ b/src/guide/components/events.md @@ -17,6 +17,7 @@ if (typeof window !== 'undefined') { } } + # Component Events {#component-events} > This page assumes you've already read the [Components Basics](/guide/essentials/component-basics). Read that first if you are new to components. @@ -176,14 +177,14 @@ export default { -The `emits` option and `defineEmits()` macro also support an object syntax, which allows us to perform runtime validation of the payload of the emitted events: +The `emits` option and `defineEmits()` macro also support an object syntax. If using TypeScript you can type arguments, which allows us to perform runtime validation of the payload of the emitted events:
```vue