Skip to content

Commit

Permalink
Merge pull request #18 from husayt/patch-1
Browse files Browse the repository at this point in the history
fix to prevent error in Ts 2.7+
  • Loading branch information
husayt committed Dec 4, 2018
2 parents 2992d14 + a41df95 commit f1bd941
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ const s = Symbol('baz')
})
export class MyComponent extends Vue {

@Inject() foo: string
@Inject('bar') bar: string
@Inject(s) baz: string
@Inject() foo!: string
@Inject('bar') bar!: string
@Inject(s) baz!: string

@Model('change') checked: boolean
@Model('change') checked!: boolean

@Prop()
propA: number
propA!: number

@Prop({ default: 'default value' })
propB: string
propB!: string

@Prop([String, Boolean])
propC: string | boolean
propC!: string | boolean

@Prop({ type: null })
propD: any
propD!: any

@Provide() foo = 'foo'
@Provide('bar') baz = 'bar'
Expand Down

0 comments on commit f1bd941

Please sign in to comment.