Skip to content

Commit

Permalink
fix define-prps-declaration docs (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorites committed Sep 17, 2022
1 parent 4d0ffae commit e9964e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/rules/define-props-declaration.md
Expand Up @@ -48,14 +48,15 @@ const props = defineProps({

```vue
<script setup lang="ts">
/* ✓ GOOD */
const props = defineProps({
kind: { type: String }
})
/* ✗ BAD */
const emit = defineEmits<{
(e: 'change', id: number): void
(e: 'update', value: string): void
const props = defineProps<{
kind: string
}>()
/* ✓ GOOD */
const emit = defineEmits(['change', 'update'])
</script>
```

Expand Down

0 comments on commit e9964e1

Please sign in to comment.