On some this code I had the error

app.get(`${basePath}/gptStatus`, (...args) => {
	const gptStatus = new GptStatus();
	gptStatus.call(...args);
});
A spread argument must either have a tuple type or be passed to a rest parameter.ts(2556)

(parameter) args: any[]

I think this is because, in Lexical Labs, I copied the example of creating an api route which was a js file and I have changed it to a ts file. The solution was to ask chatgpt what parameters expressJS’s app.get actually takes.

app.get(`${basePath}/gptStatus`, (req, res) => {
	const gptStatus = new GptStatus();
	gptStatus.call(req, res);
});