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.
2 parents 2992d14 + a41df95 commit f1bd941Copy full SHA for f1bd941
README.md
@@ -35,23 +35,23 @@ const s = Symbol('baz')
35
})
36
export class MyComponent extends Vue {
37
38
- @Inject() foo: string
39
- @Inject('bar') bar: string
40
- @Inject(s) baz: string
+ @Inject() foo!: string
+ @Inject('bar') bar!: string
+ @Inject(s) baz!: string
41
42
- @Model('change') checked: boolean
+ @Model('change') checked!: boolean
43
44
@Prop()
45
- propA: number
+ propA!: number
46
47
@Prop({ default: 'default value' })
48
- propB: string
+ propB!: string
49
50
@Prop([String, Boolean])
51
- propC: string | boolean
+ propC!: string | boolean
52
53
@Prop({ type: null })
54
- propD: any
+ propD!: any
55
56
@Provide() foo = 'foo'
57
@Provide('bar') baz = 'bar'
0 commit comments