#102384
Ede Gross
Participant

I actually used your code
views: object | SchedulerViewType[] = [
‘timelineDay’,
{ //Custom view definition
label: ‘Timeline Work Week’,
value: ‘workWeek’,
type: ‘timelineWeek’,
hideWeekend: true },
];
 
and it says
 
Type ‘SchedulerViews[]’ is not assignable to type ‘SchedulerViews’.
Type ‘SchedulerViews[]’ is not assignable to type ‘”timelineMonth”‘.
 
I also used
views:(object | SchedulerViewType)[] = [{ label: ‘Work Week’, value: ‘workWeek’, type: ‘week’, shortcutKey: ‘W’ }, ‘month’];
and
views = [{ label: ‘Work Week’, value: ‘workWeek’, type: ‘week’, shortcutKey: ‘W’ }, ‘month’] as SchedulerViews[];
 
Same Error, the smart.scheduler.d.ts only accepts “SchedulerViews” for views and no Arrays