idle-vue icon indicating copy to clipboard operation
idle-vue copied to clipboard

Add typing for supporting typescript

Open vip30 opened this issue 6 years ago • 5 comments

vip30 avatar Oct 25 '18 08:10 vip30

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

gabrielstuff avatar Feb 07 '19 15:02 gabrielstuff

@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

vip30 avatar Feb 08 '19 07:02 vip30

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

gabrielstuff avatar May 26 '20 13:05 gabrielstuff

any updates on this?

lastlink avatar Nov 25 '20 13:11 lastlink

any updates on this?

jevillard avatar Nov 26 '20 17:11 jevillard