Skip to content

Commit

Permalink
fix(README): The correct option name is emits (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
larvanitis authored Dec 24, 2020
1 parent 841e269 commit 4b2f1ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,16 @@ export default {

</details>

### `emit` Options
### `emits` Options

<details>
<summary>
❌ <code>emit</code> option is provided in type-level only, in order to align with Vue 3's type interface. Does NOT have actual effects on the code.
❌ <code>emits</code> option is provided in type-level only, in order to align with Vue 3's type interface. Does NOT have actual effects on the code.
</summary>

```ts
defineComponent({
emit: {
emits: {
// has no effects
submit: (eventOption) => {
if (...) {
Expand Down

0 comments on commit 4b2f1ab

Please sign in to comment.