We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readonly, missing symbol property, readonly typedarray
Playground link with relevant code
const broken: Readonly<Uint8Array> = Uint8Array.of(1, 2, 3, 4); broken[Symbol.iterator] // non-existant const working: Uint8Array = Uint8Array.of(1, 2, 3, 4); working[Symbol.iterator] // okay
TS claims that Symbol.iterator and Symbol.toStringTag do not exist on Readonly.
Code transpiled without error, Symbol.iterator has the same type on Readonly as it does on Uint8Array.