Using kendo vue scheduler types eg 'SchedulerViewItemProps'

1 Answer 13 Views
Scheduler
Jasper
Top achievements
Rank 1
Jasper asked on 18 Apr 2024, 05:59 AM | edited on 18 Apr 2024, 06:07 AM

when trying to import any of Kendo Vue's types to have IDE autocomplete, my vue compiler crashes with

[plugin:vite:vue] [@vue/compiler-sfc] Failed to resolve import source "@progress/kendo-vue-scheduler".

import this this

import {
    SchedulerViewItem,
    SchedulerViewItemProps,
} from "@progress/kendo-vue-scheduler";

Is there any way around this? The autocompletion is working fine and I am getting the types to my IDE, but the project just won't launch.

EDIT

I changed the code to this:

interface Props extends /* @vue-ignore */ SchedulerViewItemProps {
    overlayPanel?: InstanceType<typeof OverlayPanel>;
    startDraggingPlannedPlanning: (
        event: MouseEvent,
        planningId: number,
    ) => void;
}

and now it is working. But still, any other way to do this?

1 Answer, 1 is accepted

Sort by
1
Accepted
Vessy
Telerik team
answered on 22 Apr 2024, 05:23 PM

Hello, Jasper,

The found by you approach is the correct one - you will need to extend the SchedulerViewItemProps interface in order to define your custom props next to the built it ones.

Kind regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

Tags
Scheduler
Asked by
Jasper
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or