TS2730

error TS2730: An arrow function cannot have a ‘this’ parameter.

Broken Code ❌

1
2
3
const loadInitialData = (this: Highcharts.Chart): void => {
// ...
}

Fixed Code ✔️

1
2
3
function loadInitialData(this: Highcharts.Chart): void {
// ...
}