8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48059b8 commit e25fca3Copy full SHA for e25fca3
example/App.vue
@@ -17,19 +17,21 @@ import Component from '../lib/index'
17
import Hello from './H 8000 ello.vue'
18
import World from './World'
19
20
-@Component({
+// We declare the props separately
21
+// to make props types inferable.
22
+const AppProps = Vue.extend({
23
props: {
24
propMessage: String
- },
25
+ }
26
+})
27
+
28
+@Component({
29
components: {
30
Hello,
31
World
32
}
33
})
-export default class App extends Vue {
- // props have to be declared for typescript
- propMessage!: string
-
34
+export default class App extends AppProps {
35
// inital data
36
msg: number = 123
37
0 commit comments