vuejs-tips / vue-the-mask

Tiny (<2k gzipped) and dependency free mask input for Vue.js
https://vuejs-tips.github.io/vue-the-mask/
1.74k stars 213 forks source link

Typescript support #143

Closed andreixk closed 4 years ago

andreixk commented 4 years ago

The library has no typescript support. I don't know why the other typescript ticket was closed.

gaisinskii commented 4 years ago

@andreixk

Have you tried npm install --save @types/vue-the-mask or yarn add -D @types/vue-the-mask ?

It should resolve your problem.

Iscrimou commented 6 months ago

@andreixk

Have you tried npm install --save @types/vue-the-mask or yarn add -D @types/vue-the-mask ?

It should resolve your problem.

This enables to import the lib, but in app.use(VueTheMask) returns the message "Argument of type 'VueTheMaskPlugin' is not assignable to parameter of type 'Plugin<[]>'." and in console shows "Uncaught (in promise) TypeError: o2 is undefined". Any solutions?