I'm currently working on a project using NativeScript app with TypeScript where I am trying to pass an array of android.net.Uri to a function. However, when attempting to do so, I encounter an error mentioning that the 'create' property does not exist on type 'ArrayConstructor'. I have looked into creating an Array using Array.create("classTtype", count), but as I am using es5, I cannot utilize this method. Here is how I am currently trying to create and populate the array, however, it is not functioning as expected:
let result: android.net.Uri[] = new Array(1); result[0] = android.net.Uri.parse(dataString);
Do you have any suggestions or alternatives for resolving this issue?