Skip to content

Commit 7e2f358

Browse files
authored
Revert "docs: fix Prop interface type error in example (#2191)" (#2200)
This reverts commit dd57dce.
1 parent dd57dce commit 7e2f358

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/guide/typescript/composition-api.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ You can use either type-based declaration OR runtime declaration, but you cannot
4040
We can also move the props types into a separate interface:
4141

4242
```vue
43-
<script lang="ts">
43+
<script setup lang="ts">
4444
interface Props {
4545
foo: string
4646
bar?: number
4747
}
48-
</script>
4948
50-
<script setup lang="ts">
5149
const props = defineProps<Props>()
5250
</script>
5351
```

0 commit comments

Comments
 (0)