I was using Firebase Functions with javascript before and everything was working fine. Now i translated my code to typescript and when i try to update my functions, in one of them it complains about the following error:
Expected at least 1 arguments, but got 0 or more.
The block of code which causes the problem is this one:
size = array.size;
if (size === 0) {
return;
} else {
array.forEach((doc : any) => {
docRefCarsDetails.push(db.collection('cars').doc(doc.get('licensePlate')));
})
return Promise.resolve(db.runTransaction(transaction => {
return Promise.resolve(transaction.getAll(...docRefCarsDetails)); // <-- this is the problem
}))
}
And as you see i even tried to check the size to make sure that it will not happen.
Thanks for helping!