I am looping over an Array of Uint8Array in TypeScript, but I get an error in Visual Studio that each specific Uint8Array is actually a string and it fails the typeCheck. I'm not sure why this is happening.
function failState (arrayOfUint8Array: Array<Uint8Array>){
for (const specificUint8Array in arrayOfUint8Array){
functionRequiringUint8Array(specificUint8Array)
//specificUint8Array is a String and can't be used in function
}
}