In native script app with typescript I'm attempting to pass android.net.Uri array to a function. Then I receive the mentioned error. I read about creating Array with Array.create("classTtype", count), but can't use it (Property 'create' does not exist on type 'ArrayConstructor') - using es5. Here how I create the array actually, but it's not working: let result: android.net.Uri[] = new Array(1); result[0] = android.net.Uri.parse(dataString);
Any suggestions?