and 'type' does not exist in type 'SchedulerEvent'. type: 'morning'

2 Answers 99 Views
Scheduler
bahaso
Top achievements
Rank 1
Iron
Iron
Iron
bahaso asked on 16 Jul 2021, 07:26 AM

Hi,

 

Which type replace morning in scheduler ? https://angular-kqsgvs.stackblitz.io

I have following error message "and 'type' does not exist in type 'SchedulerEvent'.  type: 'morning'"

 

Regards

2 Answers, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 16 Jul 2021, 03:23 PM

Hi Bahaso,

Indeed the SchedulerEvent interface doesn't contain a "type" field. The TypeScript error could be resolved by extending the SchedulerEvent interface as demonstrated in the following StackBlitz demo and code snippet:

https://stackblitz.com/edit/angular-kqsgvs-s6otwj

interface customSchedulerEvent extends SchedulerEvent{
  type: string;
}

I hope this helps.

Regards,
Yanmario Menev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
bahaso
Top achievements
Rank 1
Iron
Iron
Iron
answered on 19 Jul 2021, 11:44 AM
thanks
Tags
Scheduler
Asked by
bahaso
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Yanmario
Telerik team
bahaso
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or