HerringtonDarkholme / av-ts

A modern, type-safe, idiomatic Vue binding library
MIT License
216 stars 11 forks source link

Static class properties are undefined #52

Closed roblav96 closed 7 years ago

roblav96 commented 7 years ago

First off, this lib is the only reason I've come back to vue. Thank you so much for all your effort =]

When creating static properties on a class, all of them return undefined.

export default class ChartSbar extends Vue {
    static S_QUERY = 'chart.sbar.query'
    static S_ITEMS = 'chart.sbar.items'
    static S_SCROLL = 'chart.sbar.scroll'
    @Avts.Lifecycle
    mounted() {
        console.log('ChartSbar.S_QUERY', ChartSbar.S_QUERY) // undefined
    }
}

I notice all the ts trickey you've accomplished (well done) so my guess is that has to do something with it. Any idea how to get this working?

Thanks mate!

HerringtonDarkholme commented 7 years ago

Good catch.

I will find time to implement this.

roblav96 commented 7 years ago

No worries, thanks again for this lib!