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

Is TypeScript supported?

Open masus04 opened this issue 2 years ago • 2 comments

Our vueJs project is using typescript, so I was wondering if v-idle supports it and if so, how I can install it accordingly.

When installing according to readme i receive the following error, pointing to the import statement:

TS7016: Could not find a declaration file for module 'v-idle'. '/home/masus/workspace/ethz/ape-web-editor/frontend/ape-vue-app/node_modules/v-idle/build/vidle.min.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/v-idle` if it exists or add a new declaration (.d.ts) file containing `declare module 'v-idle';`

    10 |
  > 11 | import Vidle from 'v-idle'
       |                   ^^^^^^^^
    12 |

masus04 avatar Mar 10 '22 15:03 masus04

Duplicate of #22

masus04 avatar Mar 11 '22 11:03 masus04

@masus04 Please check here: https://github.com/eladcandroid/v-idle-3

eladcandroid avatar Apr 23 '22 19:04 eladcandroid