Skip to content

Commit

Permalink
Revert "docs: fix Prop interface type error in example (#2191)" (#2200)
Browse files Browse the repository at this point in the history
This reverts commit dd57dce.
  • Loading branch information
bencodezen authored Feb 1, 2023
1 parent dd57dce commit 7e2f358
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/guide/typescript/composition-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ You can use either type-based declaration OR runtime declaration, but you cannot
We can also move the props types into a separate interface:

```vue
<script lang="ts">
<script setup lang="ts">
interface Props {
foo: string
bar?: number
}
</script>
<script setup lang="ts">
const props = defineProps<Props>()
</script>
```
Expand Down

0 comments on commit 7e2f358

Please sign in to comment.