I'm getting this error in Typescript 4.9. I understand why I'm getting the error but I'm not sure how to get around it. I've looked at nullish coalescing but that gives more errors. The parameter will always be a two-dimensional array with one or more sets of data.
private CreatePlots(data: [] ) {
let valData = data[0][0];
let plotInfo = <EpmsPlotQueryData>data[0][1];
GUI.setPopupMsg("Loading query data " + this._processResults + " of " + this._PlotQueryList.length);
plotInfo.createPlots(valData);
}
The error I'm getting for both references to data;

I can change the function to have data defined as any to get past the errors i.e.
private CreatePlots(data)
but I would like to understand why I can't use an empty array like you can in javascript.
