-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript support #186
Comments
I am not a TS user, and have no idea on how to implement this. contributions are very welcome 😄 |
I get this error when using typescript, "TS7016: Could not find a declaration file for module 'uiv'" |
There are so many libs without updated definitions in typescript. Use ambient declarations : |
For it to work properly following the project documentation with declare module 'uiv' {
const uiv: any;
export = uiv;
}
declare module 'uiv/src/locale/lang/pt-BR' {
const locale: any;
export default locale;
} I'm not an expert with type declarations, otherwise I would happily contribute to the project... |
I use it as follows: const uiv = require( "uiv" );
const Dropdown = uiv.Dropdown;
const DatePicker = uiv.DatePicker;
const TimePicker = uiv.TimePicker; Then, register them as components new Vue( {
components: {
Dropdown,
DatePicker,
TimePicker
}
} ) Hopefully this can help you |
This is awesome project indeed. Is it possible to add definition file for Typescript since vue 2.5 have greatly improved on it.
The text was updated successfully, but these errors were encountered: