Open
Description
I have a NS-Vue TS enabled project. I've installed the plugin using tns add plugin nativescript-datetimepicker
. Now after installation, I go to the main.ts file to declare the plugin like so
import DateTimePicker from "nativescript-datetimepicker/vue"; Vue.use(DateTimePicker);
However I get swiggly red lines underneath 'DateTimePicker' in Vue.use(DateTimePicker)
.
So I changed the file node_modules/nativescript-datetimepicker/vue/index.d.ts from export * from "./index";
to
// export * from "./index";
declare const DateTimePicker: {
install(Vue: any, options: any): void;
};
export default DateTimePicker;
and now the swiggly red lines around Vue.use(DateTimePicker)
are gone and I can build the project.
Metadata
Metadata
Assignees
Labels
No labels