Skip to content

Commit

Permalink
fix: don't use prop destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 26, 2023
1 parent 83d0a64 commit e8d5e3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/fixtures/basic/components/SugarCounter.vue
@@ -1,10 +1,9 @@
<script setup lang="ts">
// eslint-disable-next-line vue/no-setup-props-destructure
const { multiplier } = defineProps<{
const props = defineProps<{
multiplier: number
}>()
const count = $ref(12)
const doubled = $computed(() => count * multiplier)
const doubled = $computed(() => count * props.multiplier)
</script>

<template>
Expand Down

0 comments on commit e8d5e3e

Please sign in to comment.