Closed
Description
This small piece of code doesn't compile:
const bytes = new Uint8Array(8);
window.crypto.getRandomValues(bytes);
for (const byte of bytes) { }
This is the error that's being generated:
C:\Temp>node tsc test.ts
test.ts(5,20): error TS2495: Type 'Uint8Array' is not an array type or a string type.