Skip to content

Commit 698e29a

Browse files
authored
add defineComponent
1 parent 9b6d404 commit 698e29a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ add `lang="ts"` to the script tag to declare TS as the lang used.
2626
...
2727
</script>
2828
```
29+
30+
use `defineComponent` to get type inference in Vue component options
31+
```js
32+
import { defineComponent } from 'vue'
33+
34+
const Component = defineComponent({
35+
// type inference enabled
36+
})
37+
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy