When I try to create array, to put the results in the array, then I get the following error message:
const allItems : any () = sp.web.lists.getByTitle("Documents").items.get();
Type ‘Promise<any()>’ is missing the following properties from type
‘any()’: length, pop, push, concat, and 16 more.ts(2740)
What am I doing wrong?