I had this method that gave me an error on the argument "items", which should be an array. 

printRequest = (lang: string, items: Array) : Promise<any> => { ...

The error

TS2552: Cannot find name 'array'. Did you mean 'Array'?


The solution is to properly cast the array. because in my case, there would be random arrays inside the items array, I had to do it like this:

printRequest = (lang: string, items: any[]) : Promise<any> => { ...


Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!