Features is declared as object so it doesn't know what properties has.
Following the example:
// let's visualize the project critical paths
gantt.features.criticalPaths.disabled = false;
I have this error in typescript:
Property 'criticalPaths' does not exist on type 'object & {}'.
Using "@bryntum/gantt": "4.1.1"