The types list the function signature for onBeforeTaskResizeFinalize
is:
onBeforeTaskResizeFinalize?: ((event: {
taskRecord: TaskModel;
data: {
source: Gantt;
context: {
async: boolean;
finalize: Function;
};
};
}) => void) | string;
but the value actually passed to the function does not have the data
wrapper around context
.