soixantecircuits / idle-vue

Vue component wrapper for idle-js
MIT License
125 stars 40 forks source link

Add typing for supporting typescript #34

Open vip30 opened 5 years ago

gabrielstuff commented 5 years ago

Hello @vip30 what is the advantage for us to include this typescript support ? Thanks!

vip30 commented 5 years ago

@gabrielstuff

Here is the advantage of including d.ts

Without the declaration typescript compiler will warn you with image

and if you are using this syntax

Vue.extend({
  onIdle() {
    this.messageStr = 'ZZZ'
  },
})

compiler will warn you with image

You can get the typing by using this.isAppIdle image

and for closing the issue https://github.com/soixantecircuits/idle-vue/issues/30

gabrielstuff commented 4 years ago

hello, no update for a long time. Will take time to review it today. Sorry for this delay.

lastlink commented 3 years ago

any updates on this?

jevillard commented 3 years ago

any updates on this?