Our state of the art Gantt chart


Post by a.petrov@sis-it.pro »

Source code in https://www.bryntum.com/docs/gantt/#guides/project_data.md#creating-a-project is not compatible with typings, the typescript compiler throws an error:

error TS2345: Argument of type '{ startDate: string; eventsData: { id: number; name: string; startDate: string; endDate: string; }[]; dependenciesData: any[]; }' is not assignable to parameter of type 'Partial<ProjectModelConfig>'.
      Object literal may only specify known properties, and 'eventsData' does not exist in type 'Partial<ProjectModelConfig>'.

But if I add 'as any' to ignore typings problem, Gantt shows data, everything works well


Post by pmiklashevich »

Thanks for the report! We will check and fix the typings issue.

Pavlo Miklashevych
Sr. Frontend Developer


Post by a.petrov@sis-it.pro »

Thank you. I noticed another inconsistency between docs and typings, https://www.bryntum.com/docs/gantt/#Gantt/model/ProjectModel#config-tasksData (and other *Data properties) says "Should be an array of TaskModels or it's configuration objects.", but actual typings only mention TaskModels.


Post by mats »

Thanks for notifying us, this is now fixed too!


Post by a.petrov@sis-it.pro »

Thank you, looking forward to the fix


Post Reply