Skip to content

Commit b9f59cb

Browse files
ferdaberchrisvfritz
authored andcommitted
Update Vetur type inference for SFCs (#1226)
* Update Vetur type inference for SFCs * fix(vetur): remove Vetur section
1 parent b0d0bdb commit b9f59cb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/v2/guide/typescript.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,6 @@ const Component = {
5656
}
5757
```
5858

59-
Note that when using Vetur with SFCs, type inference will be automatically applied to the default export, so there's no need to wrap it in `Vue.extend`:
60-
61-
``` html
62-
<template>
63-
...
64-
</template>
65-
66-
<script lang="ts">
67-
export default {
68-
// type inference enabled
69-
}
70-
</script>
71-
```
72-
7359
## Class-Style Vue Components
7460

7561
If you prefer a class-based API when declaring components, you can use the officially maintained [vue-class-component](https://github.com/vuejs/vue-class-component) decorator:

0 commit comments

Comments
 (0)