Skip to content

Commit f1bd941

Browse files
authored
Merge pull request #18 from husayt/patch-1
fix to prevent error in Ts 2.7+
2 parents 2992d14 + a41df95 commit f1bd941

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ const s = Symbol('baz')
3535
})
3636
export class MyComponent extends Vue {
3737

38-
@Inject() foo: string
39-
@Inject('bar') bar: string
40-
@Inject(s) baz: string
38+
@Inject() foo!: string
39+
@Inject('bar') bar!: string
40+
@Inject(s) baz!: string
4141

42-
@Model('change') checked: boolean
42+
@Model('change') checked!: boolean
4343

4444
@Prop()
45-
propA: number
45+
propA!: number
4646

4747
@Prop({ default: 'default value' })
48-
propB: string
48+
propB!: string
4949

5050
@Prop([String, Boolean])
51-
propC: string | boolean
51+
propC!: string | boolean
5252

5353
@Prop({ type: null })
54-
propD: any
54+
propD!: any
5555

5656
@Provide() foo = 'foo'
5757
@Provide('bar') baz = 'bar'

0 commit comments

Comments
 (0)